mirror of https://github.com/encounter/SDL.git
Fixed compile error in timer test program if PRIu64 not available.
This commit is contained in:
parent
1e2a4439a3
commit
74de09ad4e
|
@ -107,7 +107,7 @@ main(int argc, char *argv[])
|
||||||
now = SDL_GetPerformanceCounter();
|
now = SDL_GetPerformanceCounter();
|
||||||
SDL_Log("1 million iterations of ticktock took %f ms\n", (double)((now - start)*1000) / SDL_GetPerformanceFrequency());
|
SDL_Log("1 million iterations of ticktock took %f ms\n", (double)((now - start)*1000) / SDL_GetPerformanceFrequency());
|
||||||
|
|
||||||
SDL_Log("Performance counter frequency: %"PRIu64"\n", (unsigned long long) SDL_GetPerformanceFrequency());
|
SDL_Log("Performance counter frequency: %"SDL_PRIu64"\n", (unsigned long long) SDL_GetPerformanceFrequency());
|
||||||
start32 = SDL_GetTicks();
|
start32 = SDL_GetTicks();
|
||||||
start = SDL_GetPerformanceCounter();
|
start = SDL_GetPerformanceCounter();
|
||||||
SDL_Delay(1000);
|
SDL_Delay(1000);
|
||||||
|
|
Loading…
Reference in New Issue