Set the callback used to retrieve the current time.
Synopsis
Declared in <bdlt_currenttime.h>
static
CurrentTime::CurrentTimeCallback
setCurrentTimeCallback(CurrentTimeCallback callback);
Description
Set the specified callback as the function to be used to retrieve the interval between EpochUtil::epoch() and the current date/time, and return the previously set function.
Return Value
the previously installed current‐time callback function
Parameters
Name |
Description |
callback |
function used to retrieve the current time |
Created with MrDocs