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

A timer designed for diagnostics. More...

#include <common/common.hh>

Inheritance diagram for gazebo::common::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.
 
- Public Member Functions inherited from gazebo::common::Timer
 Timer ()
 Constructor.
 
virtual ~Timer ()
 Destructor.
 
Time GetElapsed () const
 Get the elapsed time.
 
void Start ()
 Start the timer.
 

Detailed Description

A timer designed for diagnostics.

Constructor & Destructor Documentation

gazebo::common::DiagnosticTimer::DiagnosticTimer ( const std::string &  _name)
inline

Constructor.

Parameters
[in]_nameName of the timer

References gazebo::common::Timer::Start(), and gazebo::common::DiagnosticManager::TimerStart().

virtual gazebo::common::DiagnosticTimer::~DiagnosticTimer ( )
inlinevirtual

Member Function Documentation

const std::string gazebo::common::DiagnosticTimer::GetName ( ) const
inline

Get the name of the timer.

Returns
The name of timer

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