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

Name

Description

std::chrono::system_clock

Type Aliases

Name

Description

duration

period

rep

time_point

Time point measured against this clock.

Static Member Functions

Name

Description

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

Name

Description

epoch

The clock's epoch (default‐constructed time point).

is_steady

Created with MrDocs