Go to the documentation of this file.
22 #define DEFAULT_RESOLUTION 1
41 main(
int argc,
char *argv[])
59 desired = atoi(argv[1]);
67 SDL_Log(
"Waiting 10 seconds\n");
75 SDL_Log(
"Timer resolution: desired = %d ms, actual = %f ms\n",
76 desired, (
double) (10 * 1000) /
ticks);
80 SDL_Log(
"Testing multiple timers...\n");
92 SDL_Log(
"Waiting 10 seconds\n");
95 SDL_Log(
"Removing timer 1 and waiting 5 more seconds\n");
104 for (i = 0; i < 1000000; ++
i) {