#include <Timeout.hpp>
| Timeout::Timeout |
( |
unsigned int |
timeout = 0 | ) |
|
Initializes and starts a timeout
- Parameters
-
| bool Timeout::elapsed |
( |
| ) |
const |
Checks if the timeout is already elapsed. This uses a syscall, so use sparingly and cache results
- Returns
- true if the timeout is elapsed
| bool Timeout::elapsed |
( |
unsigned int |
timeout | ) |
const |
Checks if the timeout is already elapsed. This uses a syscall, so use sparingly and cache results
- Parameters
-
- Returns
- true if the timeout is elapsed
| void Timeout::restart |
( |
| ) |
|
| unsigned int Timeout::timeLeft |
( |
| ) |
const |
Calculates the time left for this timeout This uses a syscall, so use sparingly and cache results
- Returns
- number of milliseconds this timeout as left
| unsigned int Timeout::timeLeft |
( |
unsigned int |
timeout | ) |
const |
Calculates the time left for this timeout This uses a syscall, so use sparingly and cache results
- Parameters
-
- Returns
- number of milliseconds this timeout as left
The documentation for this class was generated from the following files:
- /build/rock-master-18.09-drivers-iodrivers-base-0.20170901/src/Timeout.hpp
- /build/rock-master-18.09-drivers-iodrivers-base-0.20170901/src/Timeout.cpp