test/testtimer.c
changeset 6256 1d905b13b102
parent 5535 96594ac5fd1a
child 7191 75360622e65f
equal deleted inserted replaced
6255:25bfc0f21c56 6256:1d905b13b102
    12 
    12 
    13 /* Test program to check the resolution of the SDL timer on the current
    13 /* Test program to check the resolution of the SDL timer on the current
    14    platform
    14    platform
    15 */
    15 */
    16 
    16 
       
    17 #if 1 /* FIXME: Rework this using the 2.0 API */
       
    18 #include <stdio.h>
       
    19 
       
    20 int main(int argc, char *argv[])
       
    21 {
       
    22     printf("FIXME\n");
       
    23     return 0;
       
    24 }
       
    25 #else
    17 #include <stdlib.h>
    26 #include <stdlib.h>
    18 #include <stdio.h>
    27 #include <stdio.h>
    19 
    28 
    20 #include "SDL.h"
    29 #include "SDL.h"
    21 
    30 
   105     printf("1 million iterations of ticktock took %f ms\n", (double)((now - start)*1000) / SDL_GetPerformanceFrequency());
   114     printf("1 million iterations of ticktock took %f ms\n", (double)((now - start)*1000) / SDL_GetPerformanceFrequency());
   106 
   115 
   107     SDL_Quit();
   116     SDL_Quit();
   108     return (0);
   117     return (0);
   109 }
   118 }
       
   119 #endif
   110 
   120 
   111 /* vi: set ts=4 sw=4 expandtab: */
   121 /* vi: set ts=4 sw=4 expandtab: */