22 #include "utils/timer.h"
27 PRAGMA48(GCC diagnostic ignored
"-Wshadow")
28 #include <SDL_timer.h>
97 if (startTime <= time)
108 if (startTime <= time)
109 return time - startTime;
static const int MILLISECONDS_IN_A_TICK
SDL_TimerID mLogicCounterId(0)
SDL_TimerID mSecondsCounterId(0)
static uint32_t nextTick(uint32_t interval, void *param)
int get_elapsed_time1(const int startTime)
static const int MAX_TICK_VALUE
int get_elapsed_time(const int startTime)
static uint32_t nextSecond(uint32_t interval, void *param)