Class CTimer
Contents
Class CTimer#
Defined in File ecal_timer.h
Class Documentation#
-
class CTimer#
eCAL timer class.
The CTimer class is used to realize simple time triggered callbacks.
Public Functions
-
CTimer()#
Constructor.
-
CTimer(int timeout_, TimerCallbackT callback_, int delay_ = 0)#
Constructor.
- Parameters
timeout_ – Timer callback loop time in ms.
callback_ – The callback function.
delay_ – Timer callback delay for first call in ms.
-
virtual ~CTimer()#
Destructor.
-
bool Start(int timeout_, TimerCallbackT callback_, int delay_ = 0)#
Start the timer.
- Parameters
timeout_ – Timer callback loop time in ms.
callback_ – The callback function.
delay_ – Timer callback delay for first call in ms.
- Returns
True if timer could be started.
-
bool Stop()#
Stop the timer.
- Returns
True if timer could be stopped.
-
CTimer()#