#include <scopedtimer.h>
Public Member Functions | |
ScopedTimer (double *totalElapsedTime) | |
~ScopedTimer () | |
Static Public Member Functions | |
static double | time () |
returns the time in secods, with microsecond accuracy. | |
static void | busyWait (long microSeconds) |
sleeps for the given period. | |
Private Attributes | |
double * | totalElapsedTime |
double | startTime |
LibGeoDecomp::ScopedTimer::ScopedTimer | ( | double * | totalElapsedTime | ) | [inline, explicit] |
LibGeoDecomp::ScopedTimer::~ScopedTimer | ( | ) | [inline] |
References startTime, time(), and totalElapsedTime.
static void LibGeoDecomp::ScopedTimer::busyWait | ( | long | microSeconds | ) | [inline, static] |
static double LibGeoDecomp::ScopedTimer::time | ( | ) | [inline, static] |
returns the time in secods, with microsecond accuracy.
Referenced by busyWait(), LibGeoDecomp::ChronometerHelpers::BasicTimerImplementation::elapsed(), LibGeoDecomp::Chronometer::tock(), LibGeoDecomp::HiParSimulator::HpxStepper< CELL_TYPE >::update(), and ~ScopedTimer().
double LibGeoDecomp::ScopedTimer::startTime [private] |
Referenced by ~ScopedTimer().
double* LibGeoDecomp::ScopedTimer::totalElapsedTime [private] |
Referenced by ~ScopedTimer().