|
| task_timer (asio::io_service &io_service, const std::chrono::milliseconds tick_length=std::chrono::seconds(1)) |
|
void | cancel (identifier_type id) |
|
identifier_type | schedule (const task_type &task) |
|
identifier_type | schedule (const task_type &task, uint8_t timeout) |
| Schedule the given task to be executed after the given time. More...
|
|
void | set_default_timeout (uint8_t timeout) |
|
uint8_t | get_default_timeout () const |
| Get the default timeout. (Default: 5)
|
|
std::chrono::milliseconds | get_tick_length () const |
| returns the length of one tick.
|
|
A class for scheduling functions to be called after a specific amount of ticks. Ther tick length can be handed over in constructor, the default tick length is equal to 1 second.