BloombergLP::bsls::TimeUtil::getProcessTimers

Load into the specified systemTimer and userTimer the instantaneous values of platform-dependent system timer and user timer in absolute nanoseconds referenced to an arbitrary but fixed origin. If the system call fails fill both time arguments with -1. Note that this method is thread-safe only if initialize has been called before.

Synopsis

Declared in <bsls_timeutil.h>

static
void
getProcessTimers(
    Types::Int64* systemTimer,
    Types::Int64* userTimer);