Thrill
0.1
|
Independent RAII Scoped MultiTimer: contains a MultiTimer which is started with the given timer, and added to the base MultiTimer on destruction.
Definition at line 126 of file multi_timer.hpp.
#include <multi_timer.hpp>
Public Member Functions | |
ScopedMultiTimer (MultiTimer &base, const char *timer) | |
construct and change timer to tm More... | |
~ScopedMultiTimer () | |
change back timer to previous timer. More... | |
Protected Attributes | |
MultiTimer & | base_ |
reference to base timer More... | |
MultiTimer | timer_ |
contained independent timer More... | |
ScopedMultiTimer | ( | MultiTimer & | base, |
const char * | timer | ||
) |
construct and change timer to tm
Definition at line 160 of file multi_timer.cpp.
References MultiTimer::start(), and ScopedMultiTimer::timer_.
~ScopedMultiTimer | ( | ) |
change back timer to previous timer.
Definition at line 165 of file multi_timer.cpp.
References MultiTimer::add(), ScopedMultiTimer::base_, MultiTimer::stop(), and ScopedMultiTimer::timer_.
|
protected |
reference to base timer
Definition at line 137 of file multi_timer.hpp.
Referenced by ScopedMultiTimer::~ScopedMultiTimer().
|
protected |
contained independent timer
Definition at line 140 of file multi_timer.hpp.
Referenced by ScopedMultiTimer::ScopedMultiTimer(), and ScopedMultiTimer::~ScopedMultiTimer().