Class CTimedCB

Class Documentation

class eCAL::CTimedCB

eCAL timer callback class.

The CTimedCB class is used to realize simple time triggered callbacks.

Public Functions

CTimedCB()

Constructor.

CTimedCB(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.

~CTimedCB()

Destructor.

bool Start(const int timeout_, TimerCallbackT callback_, const int delay_ = 0)

Start the timer.

Return

True if timer could be started.

Parameters
  • timeout_: Timer callback loop time in ms.

  • callback_: The callback function.

  • delay_: Timer callback delay for first call in ms.

bool Stop()

Stop the timer.

Return

True if timer could be stopped.