Bitcoin ABC 0.26.3
P2P Digital Currency
|
Mockable clock in the context of tests, otherwise the system clock. More...
#include <time.h>
Public Types | |
using | time_point = std::chrono::time_point< NodeClock > |
Static Public Member Functions | |
static time_point | now () noexcept |
Return current system time or mocked time, if set. | |
static std::time_t | to_time_t (const time_point &)=delete |
static time_point | from_time_t (std::time_t)=delete |
Mockable clock in the context of tests, otherwise the system clock.
using NodeClock::time_point = std::chrono::time_point<NodeClock> |
|
staticdelete |
|
staticnoexcept |
|
staticdelete |