projects
/
dosdemo
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
2193dddfca2835f324dcafe2eed4348641c68c91
[dosdemo]
/
src
/
sdl
/
timer.c
1
#include <SDL/SDL.h>
2
#include "timer.h"
3
4
static unsigned long start_time;
5
6
void init_timer(int res_hz)
7
{
8
}
9
10
void reset_timer(void)
11
{
12
start_time = SDL_GetTicks();
13
}
14
15
unsigned long get_msec(void)
16
{
17
return SDL_GetTicks() - start_time;
18
}