#include <Timer.hh>
(singleton pattern) Creation of timers Everytime TimerFactory::Instance()->checkTimeOut() is called, it checks if created timers are still running
Definition at line 123 of file Timer.hh.
◆ TimerFactory()
Diades::Utils::TimerFactory::TimerFactory |
( |
| ) |
|
|
inlineprotected |
◆ checkTimeOut()
void Diades::Utils::TimerFactory::checkTimeOut |
( |
| ) |
|
Check for timeouts in the list of created timers The first Timer with a timeout throws a TimerTimeOut exception and is stopped.
◆ createTimer()
void Diades::Utils::TimerFactory::createTimer |
( |
const string & |
label, |
|
|
long int |
delay |
|
) |
| |
Creation of a Timer
- Parameters
-
label | Label of the timer to create |
delay | Delay of the timer to create |
- Precondition
- the label is not the label of a preexisting timer.
◆ getTime()
long int Diades::Utils::TimerFactory::getTime |
( |
const string & |
label | ) |
const |
|
inline |
Get the time of a given timer label
- Parameters
-
Definition at line 159 of file Timer.hh.
◆ Instance()
static TimerFactory* Diades::Utils::TimerFactory::Instance |
( |
| ) |
|
|
static |
◆ stopTimer()
void Diades::Utils::TimerFactory::stopTimer |
( |
const string & |
label | ) |
|
Stop the timer of a given label
- Parameters
-
◆ _instance
◆ timers
map<string,Timer *> Diades::Utils::TimerFactory::timers |
|
private |
The documentation for this class was generated from the following file:
- /home/yannick/laas/redmine/tools/diades/include/diades/utils/Timer.hh