Zth (libzth)
|
Classes | |
class | zth::TimeInterval |
Convenient wrapper around struct timespec that contains a time interval. More... | |
class | zth::Timestamp |
Convenient wrapper around struct timespec that contains an absolute timestamp. More... | |
Functions | |
constexpr TimeInterval | zth::operator""_s (unsigned long long int x) noexcept |
Define literals like 123_s , which is a zth::TimeInterval of 123 seconds. More... | |
constexpr TimeInterval | zth::operator""_ms (unsigned long long int x) noexcept |
Define literals like 123_ms , which is a zth::TimeInterval of 123 milliseconds. More... | |
constexpr TimeInterval | zth::operator""_us (unsigned long long int x) noexcept |
Define literals like 123_us , which is a zth::TimeInterval of 123 microseconds. More... | |
TimeInterval | zth::operator""_s (long double x) |
Define literals like 12.3_s , which is a zth::TimeInterval of 12.3 seconds. More... | |
|
inlineconstexprnoexcept |
Define literals like 123_ms
, which is a zth::TimeInterval of 123 milliseconds.
You may want to put using zth::operator""_ms;
in your code to simplify using it.
|
inline |
Define literals like 12.3_s
, which is a zth::TimeInterval of 12.3 seconds.
You may want to put using zth::operator""_s;
in your code to simplify using it.
|
inlineconstexprnoexcept |
Define literals like 123_s
, which is a zth::TimeInterval of 123 seconds.
You may want to put using zth::operator""_s;
in your code to simplify using it.
|
inlineconstexprnoexcept |
Define literals like 123_us
, which is a zth::TimeInterval of 123 microseconds.
You may want to put using zth::operator""_us;
in your code to simplify using it.