Public Member Functions | |
ScopedTimer (Timer &timer, const unsigned int i) | |
Start timing a new task upon creation. | |
ScopedTimer (Timer &timer, const std::string &name) | |
Start timing a new task upon creation. | |
~ScopedTimer () | |
Upon destruction, stop the task on top of the timer's stack. |
Definition at line 291 of file timer.hh.
ScopedTimer | ( | Timer & | timer, | |
const unsigned int | i | |||
) | [inline] |
ScopedTimer | ( | Timer & | timer, | |
const std::string & | name | |||
) | [inline] |
~ScopedTimer | ( | ) | [inline] |
Upon destruction, stop the task on top of the timer's stack.
It is _not_ guaranteed this task is the one started upon creation.
Definition at line 128 of file timer.hxx.
References Timer::pop().