Version of the system clock that is mockable in the context of tests (via FakeNodeClock or ::SetMockTime), otherwise the system clock.
Declared in <util/time.h>
struct NodeClock
: std::chrono::system_clock
| Name | Description |
|---|---|
std::chrono::system_clock |
| Name | Description |
|---|---|
duration | |
period | |
rep | |
time_point | Time point measured against this clock. |
| 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. |
| Name | Description |
|---|---|
epoch | The clock's epoch (default-constructed time point). |
is_steady |