class eCAL::CTimer
eCAL timer class.
The CTimer class is used to realize simple time triggered callbacks.
Members
public ECAL_API
CTimer
()
Constructor.
public ECAL_API
CTimer
(int timeout_,
TimerCallbackT
callback_,int delay_)
Constructor.
Parameters
-
timeout_
Timer callback loop time in ms. -
callback_
The callback function. -
delay_
Timer callback delay for first call in ms.
public virtual ECAL_API
~CTimer
()
Destructor.
public
CTimer
(const
CTimer
&) = delete
public
CTimer
&
operator=
(const
CTimer
&) = delete
public
CTimer
(
CTimer
&& rhs) = delete
public
CTimer
&
operator=
(
CTimer
&& rhs) = delete
public ECAL_API bool
Start
(int timeout_,
TimerCallbackT
callback_,int delay_)
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.
public ECAL_API bool
Stop
()
Stop the timer.
Returns
True if timer could be stopped.