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 |
|
Type Aliases
Name |
Description |
Time point measured against this clock. |
Static Member Functions
Name |
Description |
Deleted and unused conversion from std::time_t. |
|
Return current system time or mocked time, if set. |
|
Deleted and unused conversion to std::time_t. |
Static Data Members
Name |
Description |
The clock's epoch (default‐constructed time point). |
|
Created with MrDocs