2 * $Source: /cvs/cvsroot/d2x/arch/sdl/timer.c,v $
5 * $Date: 2002-09-01 02:46:06 $
7 * SDL library timer functions
9 * $Log: not supported by cvs2svn $
10 * Revision 1.3 2001/10/19 09:45:02 bradleyb
11 * Moved arch/sdl_* to arch/sdl
13 * Revision 1.2 2001/01/29 13:35:09 bradleyb
14 * Fixed build system, minor fixes
27 fix timer_get_fixed_seconds(void) {
29 return approx_msec_to_fsec(SDL_GetTicks());
32 unsigned long tv_now = SDL_GetTicks();
33 x=i2f(tv_now/1000) | fixdiv(i2f(tv_now % 1000),i2f(1000));
38 void timer_delay(fix seconds)
41 SDL_Delay(approx_fsec_to_msec(seconds));
43 SDL_Delay(f2i(fixmul(seconds, i2f(1000))));