5 stack.push(
new TimeMe(
"firstcall_"+name,linuxCpuOn));
43 for(
int i=0;
i <
n;
i++) b *= a;
void pop_and_push(std::string name, Type type=FastMonitoring)
TTimer is a container for a timer name and associated timers (TimeReport::Item's) ...
TimingReport::Item & first()
void clear_stack()
stop all timers in the stack and clear it.
void benchmark(std::string name, int n=1000000)
measure time to perform a number of floating point multiplications (FLOPs)
void pop()
stop the last timer and remove it from the stack
std::stack< TimeMe * > stack
static TimingReport * current()
void push(std::string name, Type type=FastMonitoring)
start a timer and add it to the stack
TimingReport::Item & main()