D++ (DPP)  10.0.30
C++ Discord API Bot Library
timer.h File Reference
#include <dpp/export.h>
#include <stdint.h>
#include <map>
#include <unordered_map>
#include <stddef.h>
#include <ctime>
#include <functional>
Include dependency graph for timer.h:
This graph shows which files directly or indirectly include this file:

Classes

class  dpp::oneshot_timer
 Trigger a timed event once. More...
 
struct  dpp::timer_t
 Used internally to store state of active timers. More...
 

Namespaces

 dpp
 The main namespace for D++ functions.
 

Typedefs

typedef size_t dpp::timer
 Represents a timer handle. More...
 
typedef std::function< void(timer)> dpp::timer_callback_t
 The type for a timer callback. More...
 
typedef std::multimap< time_t, timer_t * > dpp::timer_next_t
 A map of timers, ordered by earliest first so that map::begin() is always the soonest to be due. More...
 
typedef std::unordered_map< timer, timer_t * > dpp::timer_reg_t
 A map of timers stored by handle. More...