#include <Timeout.hpp>
◆ Timeout()
Initializes and starts a timeout
- Parameters
-
timeout,if | zero is given the timeout is inactive |
◆ elapsed() [1/2]
bool base::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
◆ elapsed() [2/2]
bool base::Timeout::elapsed |
( |
const base::Time & |
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
◆ restart()
void base::Timeout::restart |
( |
| ) |
|
◆ timeLeft() [1/2]
Time base::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
◆ timeLeft() [2/2]
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:
- /home/dfki.uni-bremen.de/roehr/workspace/2maz/dev/base/types/src/Timeout.hpp
- /home/dfki.uni-bremen.de/roehr/workspace/2maz/dev/base/types/src/Timeout.cpp