Dataflow Runtime API  4.0.1.0
Public Member Functions | List of all members
imt::base::dff::activeparts::PeriodicTimer Class Reference

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

Detailed Description

A periodic timer to be used in an active part.

The timer triggers everytime the given delay in milliseconds has elapsed.

Constructor & Destructor Documentation

◆ PeriodicTimer()

imt::base::dff::activeparts::PeriodicTimer::PeriodicTimer ( ::imt::base::dff::runtime::TimerServiceIfc timer,
uint32_t const  intervalMs 
)
explicit

Constructor.

Parameters
timerThe activepart's timer interface.
intervalMsThe specified interval value in milliseconds.

◆ ~PeriodicTimer()

imt::base::dff::activeparts::PeriodicTimer::~PeriodicTimer ( )

Destructor.

Member Function Documentation

◆ getTimerId()

::imt::base::dff::runtime::RuntimeTimer::TimerHandle imt::base::dff::activeparts::PeriodicTimer::getTimerId ( ) const

Get the handle to identify the timer.

Returns
RuntimeTimer::TimerHandle The timer handle issued by dff upon timer creation

◆ isRunning()

bool imt::base::dff::activeparts::PeriodicTimer::isRunning ( ) const

Check if the timer is running.

Returns
bool true if running, false if otherwise.

◆ startTimer()

void imt::base::dff::activeparts::PeriodicTimer::startTimer ( )

Start the periodic timer.

◆ stop()

void imt::base::dff::activeparts::PeriodicTimer::stop ( )

Stop the periodic timer.


The documentation for this class was generated from the following file: