Zth (libzth)
Loading...
Searching...
No Matches
time.h File Reference
#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

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.
 

Variables

Timestamp const zth::startTime