|
tlx
|
RAII Scoped MultiTimer switcher: switches the timer of a MultiTimer on construction and back to old one on destruction. More...
#include <multi_timer.hpp>
Public Member Functions | |
| ScopedMultiTimerSwitch (MultiTimer &timer, const char *new_timer) | |
| construct and timer to switch to | |
| ~ScopedMultiTimerSwitch () | |
| change back timer to previous timer. | |
Protected Attributes | |
| MultiTimer & | timer_ |
| reference to MultiTimer | |
| const char * | previous_ |
| previous timer, used to switch back to on destruction | |
RAII Scoped MultiTimer switcher: switches the timer of a MultiTimer on construction and back to old one on destruction.
Definition at line 108 of file multi_timer.hpp.
| ScopedMultiTimerSwitch | ( | MultiTimer & | timer, |
| const char * | new_timer ) |
construct and timer to switch to
Definition at line 146 of file multi_timer.cpp.
change back timer to previous timer.
Definition at line 152 of file multi_timer.cpp.
|
protected |
previous timer, used to switch back to on destruction
Definition at line 122 of file multi_timer.hpp.
|
protected |
reference to MultiTimer
Definition at line 119 of file multi_timer.hpp.