test/testtimer.c
changeset 7448 c1f9032d0634
parent 7316 c3052ed2c310
child 7517 965d57022c01
equal deleted inserted replaced
7447:6860de5bcb8c 7448:c1f9032d0634
   103         ticktock(0, NULL);
   103         ticktock(0, NULL);
   104     }
   104     }
   105     now = SDL_GetPerformanceCounter();
   105     now = SDL_GetPerformanceCounter();
   106     printf("1 million iterations of ticktock took %f ms\n", (double)((now - start)*1000) / SDL_GetPerformanceFrequency());
   106     printf("1 million iterations of ticktock took %f ms\n", (double)((now - start)*1000) / SDL_GetPerformanceFrequency());
   107 
   107 
   108     printf("Performance counter frequency: %lld\n", SDL_GetPerformanceFrequency());
   108     printf("Performance counter frequency: %llu\n", (unsigned long long) SDL_GetPerformanceFrequency());
   109     start32 = SDL_GetTicks();
   109     start32 = SDL_GetTicks();
   110     start = SDL_GetPerformanceCounter();
   110     start = SDL_GetPerformanceCounter();
   111     SDL_Delay(1000);
   111     SDL_Delay(1000);
   112     now = SDL_GetPerformanceCounter();
   112     now = SDL_GetPerformanceCounter();
   113     now32 = SDL_GetTicks();
   113     now32 = SDL_GetTicks();