#include <Utilities/Timing/interface/TimingReport.h>
Public Member Functions | |
std::pair< double, double > | lap () const |
TimeMe (TimingReport::Item &iitem, bool cpu=true) | |
TimeMe (const std::string &name, bool cpu=true) | |
~TimeMe () | |
Private Attributes | |
TimingReport::Item & | item |
Just create a TimeMe object giving it a name; exiting the scope the object will be deleted; the constuctor starts the timing. the destructor stops it.
Definition at line 124 of file TimingReport.h.
TimeMe::TimeMe | ( | const std::string & | name, | |
bool | cpu = true | |||
) | [inline, explicit] |
Definition at line 128 of file TimingReport.h.
References item, TimingReport::Item::start(), and TimingReport::Item::switchCPU().
00128 : 00129 item((*TimingReport::current())[name]) { 00130 item.switchCPU(cpu); 00131 item.start(); 00132 }
TimeMe::TimeMe | ( | TimingReport::Item & | iitem, | |
bool | cpu = true | |||
) | [inline, explicit] |
Definition at line 134 of file TimingReport.h.
References item, TimingReport::Item::start(), and TimingReport::Item::switchCPU().
TimeMe::~TimeMe | ( | ) | [inline] |
std::pair<double,double> TimeMe::lap | ( | ) | const [inline] |
Definition at line 140 of file TimingReport.h.
References TimingReport::Item::cpuwatch, item, GenTimer< Time >::lap(), and TimingReport::Item::stopwatch.
00140 { 00141 return std::pair<double,double>(item.stopwatch.lap().seconds(), 00142 item.cpuwatch.lap().seconds()); 00143 }
TimingReport::Item& TimeMe::item [private] |