projects
/
btb
/
d2x.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
This commit was generated by cvs2svn to compensate for changes in r2,
[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