#include <WallclockTimer.h>
Public Member Functions | |
void | add (double t) |
double | realTime () const |
void | reset () |
void | start () |
double | stop () |
WallclockTimer () | |
WallclockTimer (WallclockTimer &&)=default | |
~WallclockTimer () | |
Private Types | |
enum | State { kRunning, kStopped } |
Private Member Functions | |
double | calculateDeltaTime () const |
const WallclockTimer & | operator= (const WallclockTimer &)=delete |
WallclockTimer (const WallclockTimer &)=delete | |
Private Attributes | |
double | accumulatedRealTime_ |
struct timeval | startRealTime_ |
enum edm::WallclockTimer::State | state_ |
Definition at line 37 of file WallclockTimer.h.
|
private |
Enumerator | |
---|---|
kRunning | |
kStopped |
Definition at line 64 of file WallclockTimer.h.
WallclockTimer::WallclockTimer | ( | ) |
Definition at line 33 of file WallclockTimer.cc.
References startRealTime_.
WallclockTimer::~WallclockTimer | ( | ) |
Definition at line 51 of file WallclockTimer.cc.
|
default |
|
privatedelete |
void WallclockTimer::add | ( | double | t | ) |
Definition at line 98 of file WallclockTimer.cc.
References accumulatedRealTime_, and tree::t.
Referenced by counter.Counter::register().
|
private |
Definition at line 103 of file WallclockTimer.cc.
References CLOCK_MONOTONIC, and startRealTime_.
Referenced by realTime(), and stop().
|
privatedelete |
double WallclockTimer::realTime | ( | ) | const |
Definition at line 125 of file WallclockTimer.cc.
References accumulatedRealTime_, calculateDeltaTime(), kStopped, and state_.
void WallclockTimer::reset | ( | void | ) |
void WallclockTimer::start | ( | void | ) |
Definition at line 69 of file WallclockTimer.cc.
References CLOCK_MONOTONIC, kRunning, kStopped, startRealTime_, and state_.
Referenced by progressbar.ProgressBar::__next__().
double WallclockTimer::stop | ( | ) |
Definition at line 81 of file WallclockTimer.cc.
References accumulatedRealTime_, calculateDeltaTime(), kRunning, kStopped, state_, and tree::t.
|
private |
Definition at line 71 of file WallclockTimer.h.
Referenced by add(), realTime(), reset(), and stop().
|
private |
Definition at line 68 of file WallclockTimer.h.
Referenced by calculateDeltaTime(), start(), and WallclockTimer().
|
private |
Referenced by realTime(), start(), and stop().