test/testtimer.c
changeset 9939 6ccf11a01cb5
parent 9922 b066d5fd5fa7
child 9998 f67cf37e9cd4
equal deleted inserted replaced
9938:c1bdce8e9c64 9939:6ccf11a01cb5
   105         ticktock(0, NULL);
   105         ticktock(0, NULL);
   106     }
   106     }
   107     now = SDL_GetPerformanceCounter();
   107     now = SDL_GetPerformanceCounter();
   108     SDL_Log("1 million iterations of ticktock took %f ms\n", (double)((now - start)*1000) / SDL_GetPerformanceFrequency());
   108     SDL_Log("1 million iterations of ticktock took %f ms\n", (double)((now - start)*1000) / SDL_GetPerformanceFrequency());
   109 
   109 
   110     SDL_Log("Performance counter frequency: %"PRIu64"\n", (unsigned long long) SDL_GetPerformanceFrequency());
   110     SDL_Log("Performance counter frequency: %"SDL_PRIu64"\n", (unsigned long long) SDL_GetPerformanceFrequency());
   111     start32 = SDL_GetTicks();
   111     start32 = SDL_GetTicks();
   112     start = SDL_GetPerformanceCounter();
   112     start = SDL_GetPerformanceCounter();
   113     SDL_Delay(1000);
   113     SDL_Delay(1000);
   114     now = SDL_GetPerformanceCounter();
   114     now = SDL_GetPerformanceCounter();
   115     now32 = SDL_GetTicks();
   115     now32 = SDL_GetTicks();