![]() |
Dataflow Runtime API
2.7.4.0
|
Defines a timeout. More...
#include <Imt.Base.OS.WinEC7/Timeout.h>
Public Member Functions | |
Timeout (const TimePeriod &timePeriod) | |
Constructor. More... | |
virtual | ~Timeout (void) |
Destructor. | |
void | setTimeout (const TimePeriod &timePeriod) |
Sets a timeout. More... | |
bool | isStarted (void) const |
Is timer active (started). More... | |
void | start (void) |
Starts the timer with configured time period. | |
void | stopAndReset (void) |
Stops and resets the timer. | |
bool | isTimeout (void) const |
Returns true if specified timeout is reached. More... | |
TimePeriod | getRemainingTime (void) const |
Returns remaining time until timeout will be reached. More... | |
Defines a timeout.
A timeout can be configured by a period. When the timeout gets started it enter state 'not timeout' until the configured period expires. Then the timeout is in state 'timed out'.
|
explicit |
TimePeriod imt::base::os::winec7::Timeout::getRemainingTime | ( | void | ) | const |
Returns remaining time until timeout will be reached.
bool imt::base::os::winec7::Timeout::isStarted | ( | void | ) | const |
Is timer active (started).
bool imt::base::os::winec7::Timeout::isTimeout | ( | void | ) | const |
Returns true if specified timeout is reached.
void imt::base::os::winec7::Timeout::setTimeout | ( | const TimePeriod & | timePeriod | ) |
Sets a timeout.
timePeriod | Period when the timeout expires. |