tlx
ScopedMultiTimer Class Reference

Independent RAII Scoped MultiTimer: contains a MultiTimer which is started with the given timer, and added to the base MultiTimer on destruction. More...

#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

MultiTimerbase_
 reference to base timer More...
 
MultiTimer timer_
 contained independent timer More...
 

Detailed Description

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.

Constructor & Destructor Documentation

ScopedMultiTimer ( MultiTimer base,
const char *  timer 
)

construct and change timer to tm

Definition at line 160 of file multi_timer.cpp.

change back timer to previous timer.

Definition at line 165 of file multi_timer.cpp.

Member Data Documentation

MultiTimer& base_
protected

reference to base timer

Definition at line 137 of file multi_timer.hpp.

MultiTimer timer_
protected

contained independent timer

Definition at line 140 of file multi_timer.hpp.


The documentation for this class was generated from the following files: