3 * SDL library timer functions
17 fix timer_get_approx_seconds(void)
19 return approx_msec_to_fsec(SDL_GetTicks());
22 fix timer_get_fixed_seconds(void)
25 unsigned long tv_now = SDL_GetTicks();
26 x=i2f(tv_now/1000) | fixdiv(i2f(tv_now % 1000),i2f(1000));
30 void timer_delay(fix seconds)
32 SDL_Delay(f2i(fixmul(seconds, i2f(1000))));