D++ (DPP)  10.0.30
C++ Discord API Bot Library
dpp::timer_t Struct Reference

Used internally to store state of active timers. More...

#include "timer.h"

Collaboration diagram for dpp::timer_t:

Public Attributes

uint64_t frequency
 Frequency between ticks. More...
 
timer handle
 Timer handle. More...
 
time_t next_tick
 Next timer tick as unix epoch. More...
 
timer_callback_t on_stop
 Lambda to call on stop (optional) More...
 
timer_callback_t on_tick
 Lambda to call on tick. More...
 

Detailed Description

Used internally to store state of active timers.

Member Data Documentation

◆ frequency

uint64_t dpp::timer_t::frequency

Frequency between ticks.

◆ handle

timer dpp::timer_t::handle

Timer handle.

◆ next_tick

time_t dpp::timer_t::next_tick

Next timer tick as unix epoch.

Referenced by dpp::cluster::start_timer().

◆ on_stop

timer_callback_t dpp::timer_t::on_stop

Lambda to call on stop (optional)

Referenced by dpp::cluster::start_timer().

◆ on_tick

timer_callback_t dpp::timer_t::on_tick

Lambda to call on tick.


The documentation for this struct was generated from the following file: