]> icculus.org git repositories - btb/d2x.git/blob - arch/sdl/timer.c
cruft removal
[btb/d2x.git] / arch / sdl / timer.c
1 // SDL library timer functions
2
3 #include <conf.h>
4 #include <SDL/SDL.h>
5 #include "maths.h"
6
7 fix timer_get_fixed_seconds(void) {
8   fix x;
9   unsigned long tv_now = SDL_GetTicks();
10   x=i2f(tv_now/1000) | fixdiv(i2f(tv_now % 1000),i2f(1000));
11   return x;
12 }
13