#include <timer.h>
Public Member Functions | |
ScopedTimer (TIMER &t) | |
~ScopedTimer () | |
void | start () |
void | stop () |
void | reset () |
Helper class that starts and stops a timer when the ScopedTimer goes in and out of scope.
ScopedTimer< TIMER >::ScopedTimer | ( | TIMER & | t | ) | [inline] |
Given a reference to a timer, start it when this constructor occurs.
ScopedTimer< TIMER >::~ScopedTimer | ( | ) | [inline] |
Stop the timer from ticking when this object is destroyed (i.e. it leaves scope).
void ScopedTimer< TIMER >::reset | ( | ) | [inline] |
Explicit reset of the timer.
void ScopedTimer< TIMER >::start | ( | ) | [inline] |
Explicit start of the timer.
void ScopedTimer< TIMER >::stop | ( | ) | [inline] |
Explicit stop of the timer.