![]() |
libfilezilla
|
A monotonic clock (aka steady clock) is independent from walltime. More...
#include <time.hpp>
Public Member Functions | |
monotonic_clock ()=default | |
Constructs empty clock. More... | |
monotonic_clock (monotonic_clock const &)=default | |
monotonic_clock (monotonic_clock &&) noexcept=default | |
monotonic_clock & | operator= (monotonic_clock const &)=default |
monotonic_clock & | operator= (monotonic_clock &&) noexcept=default |
monotonic_clock const | operator+ (duration const &d) const |
Related Functions | |
(Note that these are not member functions.) | |
bool | operator== (monotonic_clock const &a, monotonic_clock const &b) |
bool | operator< (monotonic_clock const &a, monotonic_clock const &b) |
bool | operator<= (monotonic_clock const &a, monotonic_clock const &b) |
bool | operator> (monotonic_clock const &a, monotonic_clock const &b) |
bool | operator>= (monotonic_clock const &a, monotonic_clock const &b) |
A monotonic clock (aka steady clock) is independent from walltime.
In particular, while wallclock might jump forward and backward (e.g. due to DST), the monotonic clock ticks steadily forward at always the same pace.
monotonic_clock
is a convenience wrapper around std::chrono::steady_clock.
|
default |
Constructs empty clock.
Comparisons with empty clocks and adding durations to an empty clocks are undefined.
|
related |
|
related |
|
related |
|
related |
|
related |