GATE
|
Monotonic time counter. More...
#include <times.hpp>
Public Member Functions | |
TimeCounter | add (int64_t microseconds) const noexcept |
int64_t | diff (gate_timecounter_t other) const noexcept |
int64_t | diff (TimeCounter const &other) const noexcept |
Static Public Member Functions | |
static TimeCounter | now () |
Monotonic time counter.
|
static |
creates current system's timecounter value
|
noexcept |
Returns new timecounter by adding microseconds to the current timecounter
|
noexcept |
Returns difference in microseconds between current and given timecounter
|
noexcept |
Returns difference in microseconds between current and given timecounter