![]()  | 
  
    Imt.Base C++ API V4.1.1.0
    
   | 
 
A one shot timer to be used in an active part. More...
#include <Imt.Base.Dff.ActiveParts/inc/Imt.Base.Dff.ActiveParts/OneShotTimer.h>
  
Public Member Functions | |
| OneShotTimer (::imt::base::dff::runtime::TimerServiceIfc &timer, uint32_t const timeoutMs) | |
| Constructor.   | |
| void | startTimeout () | 
| Start the oneshot timer.   | |
| void | stop () | 
| Stop the oneshot timer.   | |
| bool | isRunning () const | 
| Check if the timer is running.   | |
| ::imt::base::dff::runtime::RuntimeTimer::TimerHandle | getTimerId () const | 
| Get the handle to identify the timer.   | |
| void | clearTimerHandle () | 
| Clear the timer handle.   | |
A one shot timer to be used in an active part.
The timer triggers once after the given delay in milliseconds has elapsed.
Definition at line 52 of file OneShotTimer.h.
| imt::base::dff::activeparts::OneShotTimer::OneShotTimer | ( | ::imt::base::dff::runtime::TimerServiceIfc & | timer, | 
| uint32_t const | timeoutMs | ||
| ) | 
Constructor.
| timer | The activepart's timer interface. | 
| timeoutMs | The specified timeout value in milliseconds. | 
| void imt::base::dff::activeparts::OneShotTimer::clearTimerHandle | ( | ) | 
Clear the timer handle.
Invalidates the timer handle.
| ::imt::base::dff::runtime::RuntimeTimer::TimerHandle imt::base::dff::activeparts::OneShotTimer::getTimerId | ( | ) | const | 
Get the handle to identify the timer.
| bool imt::base::dff::activeparts::OneShotTimer::isRunning | ( | ) | const | 
Check if the timer is running.
| void imt::base::dff::activeparts::OneShotTimer::startTimeout | ( | ) | 
Start the oneshot timer.
| void imt::base::dff::activeparts::OneShotTimer::stop | ( | ) | 
Stop the oneshot timer.