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

A timer designed for diagnostics. More...

#include <util/util.hh>

Inheritance diagram for gazebo::util::DiagnosticTimer:
Inheritance graph
[legend]

Public Member Functions

 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.
 
- Public Member Functions inherited from gazebo::common::Timer
 Timer ()
 Constructor.
 
virtual ~Timer ()
 Destructor.
 
Time GetElapsed () const
 Get the elapsed time.
 
bool GetRunning () const
 Returns true if the timer is running.
 

Detailed Description

A timer designed for diagnostics.

Constructor & Destructor Documentation

gazebo::util::DiagnosticTimer::DiagnosticTimer ( const std::string &  _name)

Constructor.

Parameters
[in]_nameName of the timer
virtual gazebo::util::DiagnosticTimer::~DiagnosticTimer ( )
virtual

Destructor.

Member Function Documentation

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]_prefixAnnotation to output with the elapsed time.
virtual void gazebo::util::DiagnosticTimer::Start ( )
virtual

Start the timer.

Reimplemented from gazebo::common::Timer.

virtual void gazebo::util::DiagnosticTimer::Stop ( )
virtual

Stop the timer.

Reimplemented from gazebo::common::Timer.


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