dxx-rebirth/arch/sdl_timer.c
Bradley Bell f05dc678f0 This commit was generated by cvs2svn to compensate for changes in r5,
which included commits to RCS files with non-trunk default branches.
2001-01-19 03:34:09 +00:00

16 lines
281 B
C

// SDL library timer functions
#include <conf.h>
#ifdef __ENV_LINUX__
#include <SDL/SDL.h>
#include "maths.h"
fix timer_get_fixed_seconds(void) {
fix x;
unsigned long tv_now = SDL_GetTicks();
x=i2f(tv_now/1000) | fixdiv(i2f(tv_now % 1000),i2f(1000));
return x;
}
#endif