BloombergLP::bsls::TimeUtil::getThreadUserTimer

Return the instantaneous values of a platform-dependent timer for the current thread user time in absolute nanoseconds referenced to an arbitrary but fixed origin. Return -1 on platforms where per-thread CPU timers are unavailable or in case of a system call failure. Note that this method is thread-safe only if initialize has been called before.

Synopsis

Declared in <bsls_timeutil.h>

static
Types::Int64
getThreadUserTimer();