Added high resolution timing API: SDL_GetPerformanceCounter(), SDL_GetPerformanceFrequency()

This commit is contained in:
Sam Lantinga
2011-03-25 14:45:04 -07:00
parent 2b487fd839
commit 56c4464487
8 changed files with 127 additions and 1 deletions

View File

@@ -37,6 +37,18 @@ SDL_GetTicks(void)
return 0;
}
Uint64
SDL_GetPerformanceCounter(void)
{
return SDL_GetTicks();
}
Uint64
SDL_GetPerformanceFrequency(void)
{
return 1000;
}
void
SDL_Delay(Uint32 ms)
{