Convenient wrapper around struct
timespec
that contains an absolute timestamp.
More...
#include <time.h>
Convenient wrapper around struct
timespec
that contains an absolute timestamp.
- Examples
- 5_perf.cpp, daemon_pattern.cpp, fsm14.cpp, and measure.cpp.
Definition at line 527 of file time.h.
◆ Timestamp() [1/4]
constexpr zth::Timestamp::Timestamp |
( |
| ) |
|
|
inlineconstexprnoexcept |
◆ Timestamp() [2/4]
constexpr zth::Timestamp::Timestamp |
( |
struct timespec const & |
ts | ) |
|
|
inlineconstexprnoexcept |
◆ Timestamp() [3/4]
constexpr zth::Timestamp::Timestamp |
( |
time_t |
sec, |
|
|
long |
nsec = 0 |
|
) |
| |
|
inlineexplicitconstexprnoexcept |
◆ Timestamp() [4/4]
◆ add()
constexpr void zth::Timestamp::add |
( |
TimeInterval const & |
dt | ) |
|
|
inlineconstexprnoexcept |
◆ hasPassed()
bool zth::Timestamp::hasPassed |
( |
| ) |
const |
|
inlinenoexcept |
◆ isAfter()
constexpr bool zth::Timestamp::isAfter |
( |
Timestamp const & |
t | ) |
const |
|
inlineconstexprnoexcept |
◆ isBefore()
constexpr bool zth::Timestamp::isBefore |
( |
Timestamp const & |
t | ) |
const |
|
inlineconstexprnoexcept |
◆ isNull()
constexpr bool zth::Timestamp::isNull |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ now()
◆ null()
static constexpr Timestamp zth::Timestamp::null |
( |
| ) |
|
|
inlinestaticconstexprnoexcept |
◆ operator struct timespec const &()
constexpr zth::Timestamp::operator struct timespec const & |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ operator!=()
constexpr bool zth::Timestamp::operator!= |
( |
Timestamp const & |
rhs | ) |
const |
|
inlineconstexprnoexcept |
◆ operator+()
◆ operator+=()
◆ operator-() [1/2]
◆ operator-() [2/2]
◆ operator-=()
◆ operator<()
constexpr bool zth::Timestamp::operator< |
( |
Timestamp const & |
rhs | ) |
const |
|
inlineconstexprnoexcept |
◆ operator<=()
constexpr bool zth::Timestamp::operator<= |
( |
Timestamp const & |
rhs | ) |
const |
|
inlineconstexprnoexcept |
◆ operator==()
constexpr bool zth::Timestamp::operator== |
( |
Timestamp const & |
rhs | ) |
const |
|
inlineconstexprnoexcept |
◆ operator>()
constexpr bool zth::Timestamp::operator> |
( |
Timestamp const & |
rhs | ) |
const |
|
inlineconstexprnoexcept |
◆ operator>=()
constexpr bool zth::Timestamp::operator>= |
( |
Timestamp const & |
rhs | ) |
const |
|
inlineconstexprnoexcept |
◆ passed()
◆ timeTo()
◆ ts()
constexpr struct timespec const& zth::Timestamp::ts |
( |
| ) |
const |
|
inlinenoexcept |
The documentation for this class was generated from the following file: