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