[#BloombergLP-bdlt-CurrentTime-currentTimeDefault]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/CurrentTime.adoc[CurrentTime]::currentTimeDefault
:relfileprefix: ../../../
:mrdocs:

Provide the default current&hyphen;time callback implementation&period;

== Synopsis

Declared in `&lt;bdlt&lowbar;currenttime&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bsls/TimeInterval.adoc[bsls::TimeInterval]
currentTimeDefault();
----

== Description

Return the `TimeInterval` value between `EpochUtil&colon;&colon;epoch()` and the current date&sol;time&period; This is the default current&hyphen;time callback implementation for current time retrieval&period; The obtained time is expressed as a time interval from `00&colon;00 UTC, January 1, 1970`&period; The resolution is&colon; &ast; Unix DG&hyphen;Unix&colon; microsecond resolution

&ast; Linux&colon; nanosecond resolution

&ast; Solaris&colon; 5 nanosecond resolution

&ast; Windows 11&colon; 1&hyphen;5 millisecond resolution

== Return Value

the current time as an interval from the epoch


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