![]() |
The Gaudi Framework
v41r0 (bdbe7744)
|
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. | |
| ~ScopeTimer () | |
| Destructor stopping timer. | |
| auto | elapsed () const |
| Return the elapsed time without stopping the timer. | |
Private Member Functions | |
| void | stop () const |
| Stop the timer, accumulate elapsed time and return current measurement. | |
Private Attributes | |
| Stats_t & | m_stats |
| reference to statistics counter | |
| Clock::time_point | m_t0 |
| start time of timer | |
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 |
Destructor stopping timer.
Definition at line 57 of file GenericTimer.h.
|
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.