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... | |
const std::string | GetName () const GAZEBO_DEPRECATED(7.0) |
Get the name of the timer. More... | |
bool | GetRunning () const |
Returns true if the timer is running. 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.
DiagnosticTimer | ( | const std::string & | _name | ) |
Constructor.
[in] | _name | Name of the timer |
|
virtual |
Destructor.
|
inherited |
Get the elapsed time.
const std::string GetName | ( | ) | const |
|
inherited |
Returns true if the timer is running.
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.