Dataflow Runtime API
4.0.1.0
|
A periodic timer to be used in an active part. More...
#include <Imt.Base.Dff.ActiveParts/PeriodicTimer.h>
Public Member Functions | |
PeriodicTimer (::imt::base::dff::runtime::TimerServiceIfc &timer, uint32_t const intervalMs) | |
Constructor. More... | |
~PeriodicTimer () | |
Destructor. More... | |
void | startTimer () |
Start the periodic timer. More... | |
void | stop () |
Stop the periodic timer. More... | |
bool | isRunning () const |
Check if the timer is running. More... | |
::imt::base::dff::runtime::RuntimeTimer::TimerHandle | getTimerId () const |
Get the handle to identify the timer. More... | |
A periodic timer to be used in an active part.
The timer triggers everytime the given delay in milliseconds has elapsed.
|
explicit |
Constructor.
timer | The activepart's timer interface. |
intervalMs | The specified interval value in milliseconds. |
imt::base::dff::activeparts::PeriodicTimer::~PeriodicTimer | ( | ) |
Destructor.
::imt::base::dff::runtime::RuntimeTimer::TimerHandle imt::base::dff::activeparts::PeriodicTimer::getTimerId | ( | ) | const |
Get the handle to identify the timer.
bool imt::base::dff::activeparts::PeriodicTimer::isRunning | ( | ) | const |
Check if the timer is running.
void imt::base::dff::activeparts::PeriodicTimer::startTimer | ( | ) |
Start the periodic timer.
void imt::base::dff::activeparts::PeriodicTimer::stop | ( | ) |
Stop the periodic timer.