NodeClock

Version of the system clock that is mockable in the context of tests (via FakeNodeClock or ::SetMockTime), otherwise the system clock.

Synopsis

Declared in <util/time.h>

struct NodeClock
    : std::chrono::system_clock

Base Classes

NameDescription
std::chrono::system_clock

Type Aliases

NameDescription
duration
period
rep
time_point Time point measured against this clock.

Static Member Functions

NameDescription
from_time_t Deleted and unused conversion from std::time_t.
now Return current system time or mocked time, if set.
to_time_t Deleted and unused conversion to std::time_t.

Static Data Members

NameDescription
epoch The clock's epoch (default-constructed time point).
is_steady