[#GetTime-0d8]
= GetTime
:mrdocs:

`GetTime` overloads

== Synopses

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

DEPRECATED Use either ClockType&colon;&colon;now() or Now&lt;TimePointType&gt;() if a cast is needed&period; ClockType is &hyphen; SteadyClock&sol;std&colon;&colon;chrono&colon;&colon;steady&lowbar;clock for steady time &hyphen; SystemClock&sol;std&colon;&colon;chrono&colon;&colon;system&lowbar;clock for system time &hyphen; NodeClock for mockable system time


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int64&lowbar;t
xref:GetTime-0e.adoc[GetTime]();
----

[.small]#xref:GetTime-0e.adoc[_» more&period;&period;&period;_]#

DEPRECATED, see GetTime&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename T&gt;
T
xref:GetTime-0db.adoc[GetTime]();
----

[.small]#xref:GetTime-0db.adoc[_» more&period;&period;&period;_]#

== Return Value

* The current node time as a Unix timestamp in seconds&period;
* The current node time since epoch as a duration of type T&period;


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