BloombergLP::bsls::TimeUtil::getTimerRaw

Load the current time as an opaque platform-dependent value.

Synopsis

Declared in <bsls_timeutil.h>

static
void
getTimerRaw(OpaqueNativeTime* timeValue);

Description

Load into the specified timeValue the value of an opaque, platform-dependent type representing the current time. timeValue must be converted by the convertRawTime method to conventional units (nanoseconds). This method is intended to facilitate accurate timing of small segments of code, and care must be used in interpreting the results. Note that this method is thread-safe only if initialize has been called before.

Parameters

NameDescription
timeValuereceives the opaque native time value