![]() |
Dataflow Runtime API
3.0.3.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. More... | |
| void | startTimer (void) |
| Start the periodic timer. More... | |
| void | stop (void) |
| Stop the periodic timer. More... | |
| 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::activeparts::PeriodicTimer::~PeriodicTimer | ( | void | ) |
Destructor.
| 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.
| void imt::base::dff::activeparts::PeriodicTimer::startTimer | ( | void | ) |
Start the periodic timer.
| void imt::base::dff::activeparts::PeriodicTimer::stop | ( | void | ) |
Stop the periodic timer.