neoGFX
Cross-platform C++ app/game engine
|
#include <timer.hpp>
Classes | |
struct | already_disabled |
struct | already_enabled |
struct | already_waiting |
Public Types | |
typedef std::chrono::duration< double > | duration_type |
Public Types inherited from neolib::lifetime< Base > | |
typedef neolib::destroyed_flag | destroyed_flag |
Protected Member Functions | |
void | unsubscribe () |
typedef std::chrono::duration<double> neolib::timer::duration_type |
neolib::timer::timer | ( | i_async_task & | aTask, |
const duration_type & | aDuration_s, | ||
bool | aInitialWait = true |
||
) |
neolib::timer::timer | ( | i_async_task & | aTask, |
const i_lifetime & | aContext, | ||
const duration_type & | aDuration_s, | ||
bool | aInitialWait = true |
||
) |
|
inline |
|
virtual |
void neolib::timer::again | ( | ) |
void neolib::timer::again_if | ( | ) |
void neolib::timer::cancel | ( | ) |
void neolib::timer::disable | ( | ) |
bool neolib::timer::disabled | ( | ) | const |
const duration_type & neolib::timer::duration | ( | ) | const |
bool neolib::timer::enabled | ( | ) | const |
i_async_task & neolib::timer::owner_task | ( | ) | const |
void neolib::timer::reset | ( | ) |
void neolib::timer::set_duration | ( | const duration_type & | aDuration_s, |
bool | aEffectiveImmediately = false |
||
) |
|
protected |
bool neolib::timer::waiting | ( | ) | const |