A timer designed for diagnostics. More...
#include <util/util.hh>

Public Member Functions | |
| DiagnosticTimer (const std::string &_name) | |
| Constructor. | |
| virtual | ~DiagnosticTimer () |
| Destructor. | |
| const std::string | GetName () const |
| Get the name of the timer. | |
| void | Lap (const std::string &_prefix) |
| Output a lap time. | |
| virtual void | Start () |
| Start the timer. | |
| virtual void | Stop () |
| Stop the timer. | |
Public Member Functions inherited from gazebo::common::Timer | |
| Timer () | |
| Constructor. | |
| virtual | ~Timer () |
| Destructor. | |
| Time | GetElapsed () const |
| Get the elapsed time. | |
| bool | GetRunning () const |
| Returns true if the timer is running. | |
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.