#include <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 |
a class to time a "scope" to be used as a "Sentry". 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 evf::utils::cpu, item, TimingReport::Item::start(), and TimingReport::Item::switchCPU().
TimeMe::TimeMe | ( | TimingReport::Item & | iitem, |
bool | cpu = true |
||
) | [inline, explicit] |
Definition at line 134 of file TimingReport.h.
References evf::utils::cpu, item, TimingReport::Item::start(), and TimingReport::Item::switchCPU().
TimeMe::~TimeMe | ( | ) | [inline] |
Definition at line 146 of file TimingReport.h.
References item, and TimingReport::Item::stop().
std::pair<double,double> TimeMe::lap | ( | ) | const [inline] |
Definition at line 140 of file TimingReport.h.
References TimingReport::Item::cpuwatch, item, GenTimer< Time >::lap(), GenTimeInterval< Time >::seconds(), and TimingReport::Item::stopwatch.
TimingReport::Item& TimeMe::item [private] |
Definition at line 152 of file TimingReport.h.