#include "utl/RealTimeStopwatch.h"
Public Member Functions | |
double | GetTime () |
RealTimeStopwatch (const bool start=true) | |
void | Reset () |
void | Start () |
double | Stop () |
returns time since last call to Start() More... | |
Private Attributes | |
bool | fIsStopped |
struct timeval | fStart |
double | fTimeSum |
Note: constructor starts the stopwatch. Use Reset() before starting it at the later time.
Definition at line 19 of file RealTimeStopwatch.h.
RealTimeStopwatch::RealTimeStopwatch | ( | const bool | start = true | ) |
Definition at line 7 of file RealTimeStopwatch.cc.
References fStart.
double RealTimeStopwatch::GetTime | ( | ) |
Definition at line 51 of file RealTimeStopwatch.cc.
References fIsStopped, fStart, fTimeSum, utl::microsecond, and utl::second.
Referenced by TestTime::TestRealTimeStopwatch().
void RealTimeStopwatch::Reset | ( | ) |
Definition at line 17 of file RealTimeStopwatch.cc.
References fIsStopped, and fTimeSum.
Referenced by TestTime::TestRealTimeStopwatch().
void RealTimeStopwatch::Start | ( | ) |
Definition at line 25 of file RealTimeStopwatch.cc.
References fIsStopped, and fStart.
Referenced by TestTime::TestRealTimeStopwatch().
double RealTimeStopwatch::Stop | ( | ) |
returns time since last call to Start()
Definition at line 35 of file RealTimeStopwatch.cc.
References fIsStopped, fStart, fTimeSum, utl::microsecond, and utl::second.
Referenced by fwk::RunController::FinishBranch(), and TestTime::TestRealTimeStopwatch().
|
private |
|
private |
Definition at line 32 of file RealTimeStopwatch.h.
Referenced by GetTime(), RealTimeStopwatch(), Start(), and Stop().
|
private |
Definition at line 33 of file RealTimeStopwatch.h.