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 GAZEBO_DEPRECATED(7.0) |
Get the name of the timer. More... | |
void | Lap (const std::string &_prefix) |
Output a lap time. More... | |
const std::string | Name () const |
Get the name of the timer. More... | |
virtual void | Start () |
Start the timer. More... | |
virtual void | Stop () |
Stop the timer. More... | |
Public Member Functions inherited from gazebo::common::Timer | |
Timer () | |
Default constructor. More... | |
Timer (const Time &_maxTime, const bool _countdown=true) | |
Countdown 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.
const std::string gazebo::util::DiagnosticTimer::GetName | ( | ) | const |
void gazebo::util::DiagnosticTimer::Lap | ( | const std::string & | _prefix | ) |
Output a lap time.
[in] | _prefix | Annotation to output with the elapsed time. |
const std::string gazebo::util::DiagnosticTimer::Name | ( | ) | const |
Get the name of the timer.
|
virtual |
Start the timer.
Reimplemented from gazebo::common::Timer.
|
virtual |
Stop the timer.
Reimplemented from gazebo::common::Timer.