[#NodeClock] = NodeClock :mrdocs: 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>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct NodeClock : std::chrono::system_clock ---- == Base Classes [cols="1,4"] |=== | Name| Description | `std::chrono::system_clock` | |=== == Type Aliases [cols="1,4"] |=== | Name| Description | xref:NodeClock/duration.adoc[`duration`] | | xref:NodeClock/period.adoc[`period`] | | xref:NodeClock/rep.adoc[`rep`] | | xref:NodeClock/time_point.adoc[`time_point`] | Time point measured against this clock. |=== == Static Member Functions [cols="1,4"] |=== | Name| Description | xref:NodeClock/from_time_t-03.adoc[`from_time_t`] | Deleted and unused conversion from std::time_t. | xref:NodeClock/now.adoc[`now`] | Return current system time or mocked time, if set. | xref:NodeClock/to_time_t-01.adoc[`to_time_t`] | Deleted and unused conversion to std::time_t. |=== == Static Data Members [cols="1,4"] |=== | Name| Description | xref:NodeClock/epoch.adoc[`epoch`] | The clock's epoch (default‐constructed time point). | xref:NodeClock/is_steady.adoc[`is_steady`] | |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#