All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Friends | List of all members
gazebo::common::Timer Class Reference

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

#include <common/common.hh>

Inheritance diagram for gazebo::common::Timer:
Inheritance graph
[legend]

Public Member Functions

 Timer ()
 Constructor. More...
 
virtual ~Timer ()
 Destructor. More...
 
Time GetElapsed () const
 Get the elapsed time. More...
 
bool GetRunning () const
 Returns true if the timer is running. More...
 
virtual void Start ()
 Start the timer. More...
 
virtual void Stop ()
 Stop the timer. More...
 

Friends

std::ostream & operator<< (std::ostream &out, const gazebo::common::Timer &t)
 Stream operator friendly. More...
 

Detailed Description

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

Constructor & Destructor Documentation

gazebo::common::Timer::Timer ( )

Constructor.

virtual gazebo::common::Timer::~Timer ( )
virtual

Destructor.

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

Start the timer.

Reimplemented in gazebo::util::DiagnosticTimer.

virtual void gazebo::common::Timer::Stop ( )
virtual

Stop the timer.

Reimplemented in gazebo::util::DiagnosticTimer.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const gazebo::common::Timer t 
)
friend

Stream operator friendly.


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