![]() |
The Gaudi Framework
v26r0
|
Auxilliary class. More...
#include <src/components/TimerForSequencer.h>

Public Member Functions | |
| TimerForSequencer (const std::string &name, const unsigned int size, const double factor) | |
| Constructor. More... | |
| ~TimerForSequencer () | |
| 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 |
| long long | m_startCpu |
| long long | m_num |
| double | m_lastTime |
| double | m_lastCpu |
| double | m_min |
| double | m_max |
| double | m_sum |
| double | m_sumCpu |
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 14 of file TimerForSequencer.h.
|
inline |
Constructor.
Specify the name, for later printing.
Definition at line 20 of file TimerForSequencer.h.
|
inline |
Definition at line 37 of file TimerForSequencer.h.
|
inline |
|
inline |
|
inline |
Write measured time into the message stream.
Definition at line 40 of file TimerForSequencer.cpp.
|
static |
|
inline |
|
inline |
|
inline |
|
inline |
Start a time measurement.
Definition at line 40 of file TimerForSequencer.h.
| double TimerForSequencer::stop | ( | ) |
Stop time measurement and return the last elapsed time.
Definition at line 11 of file TimerForSequencer.cpp.
|
private |
Definition at line 79 of file TimerForSequencer.h.
|
private |
Definition at line 85 of file TimerForSequencer.h.
|
private |
Definition at line 84 of file TimerForSequencer.h.
|
private |
Definition at line 87 of file TimerForSequencer.h.
|
private |
Definition at line 86 of file TimerForSequencer.h.
|
private |
Definition at line 77 of file TimerForSequencer.h.
|
private |
Definition at line 83 of file TimerForSequencer.h.
|
private |
Definition at line 78 of file TimerForSequencer.h.
|
private |
Definition at line 80 of file TimerForSequencer.h.
|
private |
Definition at line 81 of file TimerForSequencer.h.
|
private |
Definition at line 88 of file TimerForSequencer.h.
|
private |
Definition at line 89 of file TimerForSequencer.h.