A timer designed for diagnostics.
More...
#include <util/util.hh>
|
| | 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.
|
| |
| | 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.
- Parameters
-
| [in] | _name | Name of the timer |
| virtual gazebo::util::DiagnosticTimer::~DiagnosticTimer |
( |
| ) |
|
|
virtual |
| const std::string gazebo::util::DiagnosticTimer::GetName |
( |
| ) |
const |
|
inline |
Get the name of the timer.
- Returns
- The name of timer
| void gazebo::util::DiagnosticTimer::Lap |
( |
const std::string & |
_prefix | ) |
|
Output a lap time.
- Parameters
-
| [in] | _prefix | Annotation to output with the elapsed time. |
| virtual void gazebo::util::DiagnosticTimer::Start |
( |
| ) |
|
|
virtual |
| virtual void gazebo::util::DiagnosticTimer::Stop |
( |
| ) |
|
|
virtual |
The documentation for this class was generated from the following file: