#include <Timer.hh>
Manage a timer with a given delay
Definition at line 71 of file Timer.hh.
◆ Timer()
Diades::Utils::Timer::Timer |
( |
const string & |
label, |
|
|
long int |
delay |
|
) |
| |
Constructor
- Parameters
-
label | of the timer. |
delay | in millisecond before the time out. (user time) Create a Timer. Calling checkTimeOut() will throw an TimerTimeOut exception if the time exceeds 'delay' milliseconds after the activation of the Timer. |
- Precondition
- An Interruptible object is an object that implements the method timeOut().
◆ activated()
bool Diades::Utils::Timer::activated |
( |
| ) |
const |
|
inline |
◆ checkTimeOut()
void Diades::Utils::Timer::checkTimeOut |
( |
| ) |
|
Check for a timeout Throw a TimerTimeOut excpetion if the delay has expired.
◆ getTime()
long int Diades::Utils::Timer::getTime |
( |
| ) |
const |
- Returns
- the user time for the process in milliseconds
◆ labl
string Diades::Utils::Timer::labl |
|
private |
◆ timeOut
long int Diades::Utils::Timer::timeOut |
|
private |
The documentation for this class was generated from the following file:
- /home/yannick/laas/redmine/tools/diades/include/diades/utils/Timer.hh