D++ (DPP)
C++ Discord API Bot Library
|
Used internally to store state of active timers. More...
#include <timer.h>
Public Attributes | |
timer | handle {0} |
Timer handle. More... | |
time_t | next_tick {0} |
Next timer tick as unix epoch. More... | |
uint64_t | frequency {0} |
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 {0} |
Frequency between ticks.
timer dpp::timer_t::handle {0} |
Timer handle.
time_t dpp::timer_t::next_tick {0} |
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.