]> icculus.org git repositories - btb/d2x.git/blob - arch/sdl_timer.c
remove pesky * from RCS log entry
[btb/d2x.git] / arch / sdl_timer.c
1 /*
2  * $Source: /cvs/cvsroot/d2x/arch/sdl_timer.c,v $
3  * $Revision: 1.2 $
4  * $Author: bradleyb $
5  * $Date: 2001-01-29 13:35:09 $
6  *
7  * SDL library timer functions
8  *
9  * $Log: not supported by cvs2svn $
10  */
11
12 #ifdef HAVE_CONFIG_H
13 #include <conf.h>
14 #endif
15
16 #include <SDL/SDL.h>
17 #include "maths.h"
18
19 fix timer_get_fixed_seconds(void) {
20   fix x;
21   unsigned long tv_now = SDL_GetTicks();
22   x=i2f(tv_now/1000) | fixdiv(i2f(tv_now % 1000),i2f(1000));
23   return x;
24 }