20 #if defined(_DEBUG) && defined(_WINDOWS)
21 #define DEBUG_NEW new(_NORMAL_BLOCK, __FILE__, __LINE__)
40 void Timer::update() {
49 template class Singleton<Timer>;
50 template class Chronometer<Time>;
52 Timer * Timer::create() {
56 Singleton<Timer>::Uninit Timer::g_uninit;
57 Singleton<Timer>::Reinit Timer::g_reinit;
65 cr.lend_pre_uninit(&g_uninit);
66 cr.lend_post_reinit(&g_reinit);
A High Quality Timer Singleton.
Timer_HQ & get_Timer_HQ()
Get access to the singleton.
static void remove_post_reinit(Event::Handler *const &handler)
Time()
Initialize to the current time.
HQ_Tick_Type get_ticks()
Get the number of ticks passed since instantiation.
DECLSPEC Uint32 SDLCALL SDL_GetTicks(void)
Get the number of milliseconds since the SDL library initialization.
Timer & get_Timer()
Get access to the singleton.
static void remove_pre_uninit(Event::Handler *const &handler)
Core & get_Core()
Get access to the singleton.
HQ_Tick_Type get_ticks_per_second()
Get the number of ticks per second.