void SDL_StartTicks(void) { if ( ! is_fast_inited ) // important to check or FastTime may hang machine! SDL_SYS_TimerInit(); start_tick = FastMicroseconds(); }
void SDL_StartTicks(void) { if ( ! is_fast_inited ) SDL_SYS_TimerInit(); start_tick = FastMicroseconds(); }
Uint32 SDL_GetTicks(void) { if ( ! is_fast_inited ) SDL_SYS_TimerInit(); return FastMilliseconds(); }
int SDL_TimerInit(void) { int retval; SDL_timer_running = 0; SDL_SetTimer(0, NULL); retval = 0; if ( ! SDL_timer_threaded ) { retval = SDL_SYS_TimerInit(); } if ( SDL_timer_threaded ) { SDL_timer_mutex = SDL_CreateMutex(); } SDL_timer_started = 1; return(retval); }
int SDL_TimerInit(void) { int retval; retval = 0; if ( SDL_timer_started ) { SDL_TimerQuit(); } if ( ! SDL_timer_threaded ) { retval = SDL_SYS_TimerInit(); } if ( SDL_timer_threaded ) { SDL_timer_mutex = SDL_CreateMutex(); } if ( retval == 0 ) { SDL_timer_started = 1; } return(retval); }