A diagnostic manager class.
More...
#include <common/common.hh>
A diagnostic manager class.
DiagnosticTimerPtr gazebo::common::DiagnosticManager::CreateTimer |
( |
const std::string & |
_name | ) |
|
Create a new timer instance.
- Parameters
-
[in] | _name | Name of the timer. |
- Returns
- A pointer to the new diagnostic timer
bool gazebo::common::DiagnosticManager::GetEnabled |
( |
| ) |
const |
|
inline |
Get whether the timers are enabled.
- Returns
- TRue if the timers are enabled
std::string gazebo::common::DiagnosticManager::GetLabel |
( |
int |
_index | ) |
const |
Get a label for a timer.
- Parameters
-
[in] | _index | Index of a timer instance |
- Returns
- Label of the specified timer
Time gazebo::common::DiagnosticManager::GetTime |
( |
int |
_index | ) |
const |
Get the time of a timer instance.
- Parameters
-
[in] | _index | The index of a timer instance |
- Returns
- Time of the specified timer
Time gazebo::common::DiagnosticManager::GetTime |
( |
const std::string & |
_label | ) |
const |
Get a time based on a label.
- Parameters
-
[in] | _label | Name of the timer instance |
- Returns
- Time of the specified timer
int gazebo::common::DiagnosticManager::GetTimerCount |
( |
| ) |
const |
Get the number of timers.
- Returns
- The number of timers
void gazebo::common::DiagnosticManager::SetEnabled |
( |
bool |
_e | ) |
|
|
inline |
Set whether timers are enabled.
- Parameters
-
[in] | _e | True = timers are enabled |
void gazebo::common::DiagnosticManager::TimerStart |
( |
DiagnosticTimer * |
_timer | ) |
|
void gazebo::common::DiagnosticManager::TimerStop |
( |
DiagnosticTimer * |
_timer | ) |
|
The documentation for this class was generated from the following file: