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

Set the callback used to retrieve the current time&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bdlt/CurrentTime/CurrentTimeCallback-02.adoc[CurrentTime::CurrentTimeCallback]
setCurrentTimeCallback(xref:BloombergLP/bdlt/CurrentTime/CurrentTimeCallback-02.adoc[CurrentTimeCallback] callback);
----

== Description

Set the specified `callback` as the function to be used to retrieve the interval between `EpochUtil&colon;&colon;epoch()` and the current date&sol;time, and return the previously set function&period;

== Return Value

the previously installed current&hyphen;time callback function

== Parameters

[cols="1,4"]
|===
| Name| Description
| *callback*
| function used to retrieve the current time
|===


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