A timer class, used to time things in real world walltime.
More...
#include <common/common.hh>
Public Member Functions |
| | Timer () |
| | Constructor.
|
| virtual | ~Timer () |
| | Destructor.
|
| Time | GetElapsed () const |
| | Get the elapsed time.
|
| bool | GetRunning () const |
| | Returns true if the timer is running.
|
| virtual void | Start () |
| | Start the timer.
|
| virtual void | Stop () |
| | Stop the timer.
|
Detailed Description
A timer class, used to time things in real world walltime.
Constructor & Destructor Documentation
| gazebo::common::Timer::Timer |
( |
| ) |
|
| virtual gazebo::common::Timer::~Timer |
( |
| ) |
|
|
virtual |
Member Function Documentation
| Time gazebo::common::Timer::GetElapsed |
( |
| ) |
const |
Get the elapsed time.
- Returns
- The time
| bool gazebo::common::Timer::GetRunning |
( |
| ) |
const |
Returns true if the timer is running.
- Returns
- Tue if the timer has been started and not stopped.
| virtual void gazebo::common::Timer::Start |
( |
| ) |
|
|
virtual |
| virtual void gazebo::common::Timer::Stop |
( |
| ) |
|
|
virtual |
Friends And Related Function Documentation
Stream operator friendly.
The documentation for this class was generated from the following file: