A timer designed for diagnostics. More...
#include <util/util.hh>
Inherits Timer.
Public Member Functions | |
DiagnosticTimer (const std::string &_name) | |
Constructor. More... | |
virtual | ~DiagnosticTimer () |
Destructor. More... | |
Time | GetElapsed () const |
Get the elapsed time. More... | |
bool | GetRunning () const |
Returns true if the timer is running. More... | |
void | InsertData (const std::string &_name, const common::Time &_time) |
Insert data for statistics computation. More... | |
void | Lap (const std::string &_prefix) |
Output a lap time. More... | |
const std::string | Name () const |
Get the name of the timer. More... | |
void | Reset () |
Reset the timer. More... | |
virtual void | Start () |
Start the timer. More... | |
virtual void | Stop () |
Stop the timer. More... | |
A timer designed for diagnostics.
|
explicit |
Constructor.
[in] | _name | Name of the timer |
|
virtual |
Destructor.
|
inherited |
Get the elapsed time.
|
inherited |
Returns true if the timer is running.
void InsertData | ( | const std::string & | _name, |
const common::Time & | _time | ||
) |
Insert data for statistics computation.
void Lap | ( | const std::string & | _prefix | ) |
Output a lap time.
[in] | _prefix | Annotation to output with the elapsed time. |
const std::string Name | ( | ) | const |
Get the name of the timer.
|
inherited |
Reset the timer.
|
virtual |
Start the timer.
Reimplemented from Timer.
|
virtual |
Stop the timer.
Reimplemented from Timer.