CepGen 1.2.5
Central exclusive processes event generator
|
Collection of clocks to benchmark execution blocks. More...
#include <CepGen/Utils/TimeKeeper.h>
Classes | |
class | Ticker |
Scoped timekeeping utility. More... | |
Public Member Functions | |
TimeKeeper ()=default | |
void | clear () |
Reset all counters and the timer. | |
bool | empty () const |
Check if at least one monitor recorded something. | |
std::string | summary () const |
Write a summary of all monitors. | |
TimeKeeper & | tick (const std::string &func, double time=-1.) |
Count the time for one monitor. | |
const Timer & | timer () const |
Local timer object. | |
Definition at line 35 of file TimeKeeper.h.
|
explicitdefault |
void clear | ( | ) |
Definition at line 27 of file TimeKeeper.cpp.
bool empty | ( | ) | const |
Definition at line 40 of file TimeKeeper.h.
std::string summary | ( | ) | const |
Definition at line 37 of file TimeKeeper.cpp.
TimeKeeper & tick | ( | const std::string & | func, |
double | time = -1. |
||
) |
[in] | func | monitor to increment |
[in] | time | increment, in second (< 0 to count since last timer reset) |
Definition at line 32 of file TimeKeeper.cpp.
const Timer & timer | ( | ) | const |