Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
Arcane::Timer::Sentry Class Reference

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>

Public Member Functions

 Sentry (Timer *t)
 Associates the timer t and starts it.
 ~Sentry ()
 Stops the associated timer.

Detailed Description

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.

Constructor & Destructor Documentation

◆ Sentry()

Arcane::Timer::Sentry::Sentry ( Timer * t)
inline

Associates the timer t and starts it.

Definition at line 94 of file Timer.h.

References Arcane::Timer::Timer().

◆ ~Sentry()

Arcane::Timer::Sentry::~Sentry ( )
inline

Stops the associated timer.

Definition at line 100 of file Timer.h.


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