D++ (DPP)
C++ Discord API Bot Library
|
Used internally to store state of active timers. More...
#include <timer.h>
Public Attributes | |
timer | handle |
Timer handle. More... | |
time_t | next_tick |
Next timer tick as unix epoch. More... | |
uint64_t | frequency |
Frequency between ticks. More... | |
timer_callback_t | on_tick |
Lambda to call on tick. More... | |
timer_callback_t | on_stop |
Lambda to call on stop (optional) More... | |
Used internally to store state of active timers.
uint64_t dpp::timer_t::frequency |
Frequency between ticks.
timer dpp::timer_t::handle |
Timer handle.
time_t dpp::timer_t::next_tick |
Next timer tick as unix epoch.
timer_callback_t dpp::timer_t::on_stop |
Lambda to call on stop (optional)
timer_callback_t dpp::timer_t::on_tick |
Lambda to call on tick.