Sentinel for the timer. The sentinel associated with a timer allows it to be triggered upon its construction and stopped upon its destruction. This ensures that the timer will be properly stopped in case of an exception, for example.
More...
#include <arcane/core/Timer.h>
|
| | Sentry (Timer *t) |
| | Associates the timer t and starts it.
|
| | ~Sentry () |
| | Stops the associated timer.
|
Sentinel for the timer. The sentinel associated with a timer allows it to be triggered upon its construction and stopped upon its destruction. This ensures that the timer will be properly stopped in case of an exception, for example.
Definition at line 89 of file Timer.h.
◆ Sentry()
| Arcane::Timer::Sentry::Sentry |
( |
Timer * | t | ) |
|
|
inline |
◆ ~Sentry()
| Arcane::Timer::Sentry::~Sentry |
( |
| ) |
|
|
inline |
Stops the associated timer.
Definition at line 100 of file Timer.h.
References m_timer.
◆ m_timer
| Timer* Arcane::Timer::Sentry::m_timer |
|
private |
The documentation for this class was generated from the following file: