[#NodeClock]
= NodeClock
:mrdocs:

Version of the system clock that is mockable in the context of tests (via FakeNodeClock or &colon;&colon;SetMockTime), otherwise the system clock&period;

== Synopsis

Declared in `&lt;util&sol;time&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct NodeClock
    : std::chrono::system&lowbar;clock
----

== Base Classes

[cols="1,4"]
|===
| Name| Description
| `std::chrono::system&lowbar;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&lowbar;point`] 
| Time point measured against this clock&period;
|===


== Static Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:NodeClock/from_time_t-03.adoc[`from&lowbar;time&lowbar;t`] 
| Deleted and unused conversion from std&colon;&colon;time&lowbar;t&period;
| xref:NodeClock/now.adoc[`now`] 
| Return current system time or mocked time, if set&period;
| xref:NodeClock/to_time_t-01.adoc[`to&lowbar;time&lowbar;t`] 
| Deleted and unused conversion to std&colon;&colon;time&lowbar;t&period;
|===


== Static Data Members

[cols="1,4"]
|===
| Name| Description
| xref:NodeClock/epoch.adoc[`epoch`] 
| The clock&apos;s epoch (default&hyphen;constructed time point)&period;
| xref:NodeClock/is_steady.adoc[`is&lowbar;steady`] 
| 
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
