![]() |
Dataflow Runtime API
2.7.4.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, const uint32_t intervalMs) | |
Constructor. More... | |
~PeriodicTimer (void) | |
Destructor. | |
void | startTimer (void) |
Start the periodic timer. | |
void | stop (void) |
Stop the periodic timer. | |
bool | isRunning (void) const |
Check if the timer is running. More... | |
imt::base::dff::runtime::RuntimeTimer::TimerHandle | getTimerId (void) 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::runtime::RuntimeTimer::TimerHandle imt::base::dff::activeparts::PeriodicTimer::getTimerId | ( | void | ) | const |
Get the handle to identify the timer.
bool imt::base::dff::activeparts::PeriodicTimer::isRunning | ( | void | ) | const |
Check if the timer is running.