The Gaudi Framework
master (594c33fa)
|
A scoped timer that starts/stops on con/de-struction. More...
#include </builds/gaudi/Gaudi/GaudiKernel/include/Gaudi/Timers/GenericTimer.h>
Public Member Functions | |
ScopeTimer (Stats_t &stat) | |
Start Scoped timer accumulating into stat. More... | |
~ScopeTimer () | |
Destructor stopping timer. More... | |
auto | elapsed () const |
Return the elapsed time without stopping the timer. More... | |
Private Member Functions | |
void | stop () const |
Stop the timer, accumulate elapsed time and return current measurement. More... | |
Private Attributes | |
Stats_t & | m_stats |
reference to statistics counter More... | |
Clock::time_point | m_t0 |
start time of timer More... | |
A scoped timer that starts/stops on con/de-struction.
Definition at line 51 of file GenericTimer.h.
|
inline |
Start Scoped timer accumulating into stat.
Definition at line 54 of file GenericTimer.h.
|
inline |
|
inline |
Return the elapsed time without stopping the timer.
Definition at line 61 of file GenericTimer.h.
|
inlineprivate |
Stop the timer, accumulate elapsed time and return current measurement.
Definition at line 71 of file GenericTimer.h.
|
private |
reference to statistics counter
Definition at line 73 of file GenericTimer.h.
|
private |
start time of timer
Definition at line 74 of file GenericTimer.h.