]> icculus.org git repositories - btb/d2x.git/blob - arch/sdl_timer.c
This commit was generated by cvs2svn to compensate for changes in r5,
[btb/d2x.git] / arch / sdl_timer.c
1 // SDL library timer functions
2
3 #include <conf.h>
4 #ifdef __ENV_LINUX__
5 #include <SDL/SDL.h>
6 #include "maths.h"
7
8 fix timer_get_fixed_seconds(void) {
9   fix x;
10   unsigned long tv_now = SDL_GetTicks();
11   x=i2f(tv_now/1000) | fixdiv(i2f(tv_now % 1000),i2f(1000));
12   return x;
13 }
14
15 #endif