A timer class, used to time things in real world walltime. More...
#include <common/common.hh>
Inherited by DiagnosticTimer.
Public Member Functions | |
Timer () | |
Default constructor. | |
Timer (const Time &_maxTime, const bool _countdown=true) | |
Countdown constructor. | |
virtual | ~Timer () |
Destructor. | |
Time | GetElapsed () const |
Get the elapsed time. | |
bool | GetRunning () const |
Returns true if the timer is running. | |
void | Reset () |
Reset the timer. | |
virtual void | Start () |
Start the timer. | |
virtual void | Stop () |
Stop the timer. | |
A timer class, used to time things in real world walltime.
Timer | ( | ) |
Default constructor.
Countdown constructor.
[in] | _maxTime | The time to count down from. |
[in] | _countdown. | Whether or not to count down. True by default if this constructor is used. |
|
virtual |
Destructor.
Time GetElapsed | ( | ) | const |
Get the elapsed time.
bool GetRunning | ( | ) | const |
Returns true if the timer is running.
void Reset | ( | ) |
Reset the timer.
|
virtual |
Start the timer.
Reimplemented in DiagnosticTimer.
|
virtual |
Stop the timer.
Reimplemented in DiagnosticTimer.