1 #ifndef Utilities_Timing_TimerStack_h
2 #define Utilities_Timing_TimerStack_h 1
82 #define FastTimerStackPush(timer, name) \
83 { static TimerStack::Timer t = TimerStack::Timer(std::string(name)); \
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()
Timer(const std::string &name)
void clear_stack()
stop all timers in the stack and clear it.
TimerStack(Status status)
PentiumTimeType pentiumTime()
get access to the cpu clock counter on Intel and AMD cpus
unsigned long long int PentiumTimeType
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
TimingReport::Item * main_
PentiumTimeType rdtscPentium()
TimingReport::Item * first_
void push(std::string name, Type type=FastMonitoring)
start a timer and add it to the stack
TimingReport::Item & main()