]> git.bts.cx Git - benzene.git/blob - src_platform/sdl/bz/debug/perfgraph.c
Initial version
[benzene.git] / src_platform / sdl / bz / debug / perfgraph.c
1 #include <SDL.h>
2
3 static Uint64 baseTime;
4
5 void resetSystemTimer(void) {
6 baseTime = SDL_GetTicks64();
7 }
8
9 float getSystemTimer(void) {
10 Uint64 delta = SDL_GetTicks64() - baseTime;
11 return delta / 1000.0f;
12 }