A timer class, used to time things in real world walltime.
More...
#include <common/common.hh>
A timer class, used to time things in real world walltime.
gazebo::common::Timer::Timer |
( |
| ) |
|
gazebo::common::Timer::Timer |
( |
const Time & |
_maxTime, |
|
|
const bool |
_countdown = true |
|
) |
| |
Countdown constructor.
- Parameters
-
[in] | _maxTime | The time to count down from. |
[in] | _countdown. | Whether or not to count down. True by default if this constructor is used. |
virtual gazebo::common::Timer::~Timer |
( |
| ) |
|
|
virtual |
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.
void gazebo::common::Timer::Reset |
( |
| ) |
|
virtual void gazebo::common::Timer::Start |
( |
| ) |
|
|
virtual |
virtual void gazebo::common::Timer::Stop |
( |
| ) |
|
|
virtual |
Stream operator friendly.
The documentation for this class was generated from the following file: