Gazebo Common

API Reference

5.7.0

A timer class, used to time things in real world walltime. More...

#include <common/common.hh>

Public Member Functions

 Timer ()
 Constructor. More...
 
std::chrono::duration< double > ElapsedTime () const
 Get the elapsed time. More...
 
bool Running () const
 Returns true if the timer is running. More...
 
virtual void Start ()
 Start the timer. More...
 
virtual void Stop ()
 Stop the timer. More...
 

Detailed Description

A timer class, used to time things in real world walltime.

Constructor & Destructor Documentation

◆ Timer()

Timer ( )

Constructor.

Member Function Documentation

◆ ElapsedTime()

std::chrono::duration<double> ElapsedTime ( ) const

Get the elapsed time.

Returns
The elapsed time

◆ Running()

bool Running ( ) const

Returns true if the timer is running.

Returns
Tue if the timer has been started and not stopped.

◆ Start()

virtual void Start ( )
virtual

Start the timer.

◆ Stop()

virtual void Stop ( )
virtual

Stop the timer.


The documentation for this class was generated from the following file: