Version of the system clock that is mockable in the context of tests (via NodeClockContext or SetMockTime), otherwise the system clock.
More...
#include <time.h>
Version of the system clock that is mockable in the context of tests (via NodeClockContext or SetMockTime), otherwise the system clock.
Definition at line 19 of file time.h.
◆ time_point
◆ from_time_t()
| static time_point NodeClock::from_time_t |
( |
std::time_t |
| ) |
|
|
staticdelete |
◆ now()
Return current system time or mocked time, if set.
Definition at line 30 of file time.cpp.
◆ to_time_t()
| static std::time_t NodeClock::to_time_t |
( |
const time_point & |
| ) |
|
|
staticdelete |
The documentation for this struct was generated from the following files: