|
Zth (libzth)
|
#include <libzth/macros.h>#include <libzth/allocator.h>#include <libzth/config.h>#include <libzth/util.h>#include <algorithm>#include <cmath>#include <cstdio>#include <ctime>#include <inttypes.h>#include <limits>#include <chrono>Go to the source code of this file.
Classes | |
| class | zth::TimeInterval |
Convenient wrapper around struct timespec that contains a time interval. More... | |
| struct | zth::monotonic_clock |
| class | zth::Timestamp |
Convenient wrapper around struct timespec that contains an absolute timestamp. More... | |
Namespaces | |
| namespace | zth |
Functions | |
| void | zth::now (struct timespec &ts) |
| Returns the current timestamp. | |
| int | zth::realsleep (struct timespec const &ts) |
| Sleeps the current thread. | |
| template<> | |
| cow_string | zth::str< TimeInterval const & > (TimeInterval const &value) |
| constexpr TimeInterval | zth::operator""_s (unsigned long long int x) noexcept |
Define literals like 123_s, which is a zth::TimeInterval of 123 seconds. | |
| constexpr TimeInterval | zth::operator""_ms (unsigned long long int x) noexcept |
Define literals like 123_ms, which is a zth::TimeInterval of 123 milliseconds. | |
| constexpr TimeInterval | zth::operator""_us (unsigned long long int x) noexcept |
Define literals like 123_us, which is a zth::TimeInterval of 123 microseconds. | |
| TimeInterval | zth::operator""_s (long double x) |
Define literals like 12.3_s, which is a zth::TimeInterval of 12.3 seconds. | |
| void | zth_now (struct timespec *ts) |
| Returns the current timestamp. | |
| void | zth_now2 (uint64_t *s, uint32_t *ns) |
| Returns the current timestamp. | |
Variables | |
| Timestamp const | zth::startTime |