BloombergLP::bsls::Stopwatch::accumulatedTimes

Load the accumulated system, user, and wall times in seconds.

Synopsis

Declared in <bsls_stopwatch.h>

void
accumulatedTimes(
    double* systemTime,
    double* userTime,
    double* wallTime) const;

Description

Load into the specified systemTime, userTime and wallTime the total (instantaneous and quiescent) elapsed system, user, and wall times (all in seconds) accumulated by this stopwatch. Note that this method attempts to retrieve all of the values at the same time (atomically), if the underlying platform supports it.

Parameters

NameDescription
systemTimereceives the accumulated system time, in seconds
userTimereceives the accumulated user time, in seconds
wallTimereceives the accumulated wall time, in seconds