Determine the total amount of time spent in a function. More...
#include "/afs/cern.ch/user/a/agilbert/CMSSW_14_1_0_pre4/src/CombineHarvester/CombineTools/interface/Logging.h"
Data Structures | |
class | Token |
Public Member Functions | |
FnTimer (std::string name) | |
~FnTimer () | |
Token | Inc () |
void | StartTimer () |
void | StopTimer () |
Determine the total amount of time spent in a function.
An FnTimer instance should typically be declared as a static variable at the beginning of a function, follwed by a call to the Inc() method, which will increment the counter. The Inc() method also returns an FnTimer::Token object that records the time at which it is constructed and then destroyed, the latter occurring automatically at the end of the function. At the end of the program the FnTimer destructor will write a message to the screen summarising the number of calls and the time information.
|
explicit |
Definition at line 49 of file Logging.cc.
ch::FnTimer::~FnTimer | ( | ) |
Definition at line 50 of file Logging.cc.
FnTimer::Token ch::FnTimer::Inc | ( | ) |
Definition at line 55 of file Logging.cc.
void ch::FnTimer::StartTimer | ( | ) |
Definition at line 59 of file Logging.cc.
void ch::FnTimer::StopTimer | ( | ) |
Definition at line 60 of file Logging.cc.