BloombergLP::bsls::TimeUtil::getTimer

Return the current wall time in nanoseconds from a fixed origin.

Synopsis

Declared in <bsls_timeutil.h>

static
Types::Int64
getTimer();

Description

Return the instantaneous value of a platform-dependent system timer in absolute nanoseconds referenced to an arbitrary but fixed origin. Note that this method is thread-safe only if initialize has been called before.

Return Value

current wall time in absolute nanoseconds