1 /* $Id: timer.c,v 1.5 2003-01-15 02:42:41 btb Exp $ */
4 * SDL library timer functions
18 fix timer_get_fixed_seconds(void) {
20 return approx_msec_to_fsec(SDL_GetTicks());
23 unsigned long tv_now = SDL_GetTicks();
24 x=i2f(tv_now/1000) | fixdiv(i2f(tv_now % 1000),i2f(1000));
29 void timer_delay(fix seconds)
32 SDL_Delay(approx_fsec_to_msec(seconds));
34 SDL_Delay(f2i(fixmul(seconds, i2f(1000))));