![]() |
The Gaudi Framework
v26r4
|
Auxilliary class. More...
#include <src/components/TimerForSequencer.h>
Public Member Functions | |
TimerForSequencer (std::string name, unsigned int size, double factor) | |
Constructor. More... | |
~TimerForSequencer ()=default | |
void | start () |
Start a time measurement. More... | |
double | stop () |
Stop time measurement and return the last elapsed time. More... | |
const std::string & | name () const |
returns the name More... | |
double | lastTime () const |
returns the last measured time More... | |
double | lastCpu () const |
returns the last measured time More... | |
double | elapsedTotal () const |
returns the total elapsed time More... | |
double | cpuTotal () const |
returns the total cpu time More... | |
double | count () const |
Returns the number run count. More... | |
MsgStream & | fillStream (MsgStream &s) const |
Write measured time into the message stream. More... | |
Static Public Member Functions | |
static std::string | header (std::string::size_type size) |
header matching the previous format More... | |
Private Attributes | |
std::string | m_name |
unsigned int | m_size |
double | m_factor |
long long | m_startClock = 0LL |
long long | m_startCpu = 0LL |
long long | m_num = 0LL |
double | m_lastTime = 0. |
double | m_lastCpu = 0. |
double | m_min = 0. |
double | m_max = 0. |
double | m_sum = 0. |
double | m_sumCpu = 0. |
Auxilliary class.
Measure the time between start and stop, and compute average, min and max. In fact, measure the cpu time, and the elapsed time but givesmin/max only for elapsed.
Definition at line 13 of file TimerForSequencer.h.
|
inline |
Constructor.
Specify the name, for later printing.
Definition at line 19 of file TimerForSequencer.h.
|
default |
|
inline |
|
inline |
|
inline |
Write measured time into the message stream.
Definition at line 39 of file TimerForSequencer.cpp.
|
static |
header matching the previous format
Definition at line 55 of file TimerForSequencer.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
Start a time measurement.
Definition at line 30 of file TimerForSequencer.h.
double TimerForSequencer::stop | ( | ) |
Stop time measurement and return the last elapsed time.
Definition at line 10 of file TimerForSequencer.cpp.
|
private |
Definition at line 69 of file TimerForSequencer.h.
|
private |
Definition at line 75 of file TimerForSequencer.h.
|
private |
Definition at line 74 of file TimerForSequencer.h.
|
private |
Definition at line 77 of file TimerForSequencer.h.
|
private |
Definition at line 76 of file TimerForSequencer.h.
|
private |
Definition at line 67 of file TimerForSequencer.h.
|
private |
Definition at line 73 of file TimerForSequencer.h.
|
private |
Definition at line 68 of file TimerForSequencer.h.
|
private |
Definition at line 70 of file TimerForSequencer.h.
|
private |
Definition at line 71 of file TimerForSequencer.h.
|
private |
Definition at line 78 of file TimerForSequencer.h.
|
private |
Definition at line 79 of file TimerForSequencer.h.