1 #ifndef UTILITIES_TIMING_TIMINGREPORT_H
2 #define UTILITIES_TIMING_TIMINGREPORT_H
63 typedef std::map< std::string, Item, std::less<std::string> >
SMAP;
71 void dump(std::ostream & co,
bool active=
false);
93 if (p!=
registry.end())
return (*p).second;
98 SMAP::const_iterator
p =
registry.find(name);
99 if (p!=
registry.end())
return (*p).second;
100 return const_cast<TimingReport*>(
this)->make(name);
140 std::pair<double,double>
lap()
const {
156 #endif // UTILITIES_TIMING_TIMINGREPORT_H
BaseEvent< std::pair< double, double > > MyObserver
void start(const std::string &name)
const bool & isOn() const
void stop(const std::string &name)
Item & switchOn(bool ion)
bool & inTicks()
report in ticks
TimeMe(TimingReport::Item &iitem, bool cpu=true)
Time::TimeInterval lap() const
std::map< std::string, Item, std::less< std::string > > SMAP
const Item & operator[](const std::string &name) const
TimeMe(const std::string &name, bool cpu=true)
BaseEvent< std::pair< double, double > > ItemObserver
static TimingReport * current()
void setObs(MyObserver *io)
void switchOn(const std::string &name, bool ion)
switch one ion
TimingReport::Item & item
Item & operator[](const std::string &name)
void switchOn(bool ion)
switch all on
Item & switchCPU(bool ion)
void dump(std::ostream &co, bool active=false)
Item & make(const std::string &name)
std::pair< double, double > lap() const