test/testsprite.c
changeset 2784 9bbe3bd94be8
parent 1931 103c6fec2a60
child 2786 6bacfecbf27e
equal deleted inserted replaced
2783:e33ad7ebb7eb 2784:9bbe3bd94be8
   309     free(mem);
   309     free(mem);
   310 
   310 
   311     /* Print out some timing information */
   311     /* Print out some timing information */
   312     now = SDL_GetTicks();
   312     now = SDL_GetTicks();
   313     if (now > then) {
   313     if (now > then) {
   314         printf("%2.2f frames per second\n",
   314 		double fps = ((double) frames * 1000) / (now - then);
   315                ((double) frames * 1000) / (now - then));
   315         printf("%2.2f frames per second\n", fps);
   316     }
   316     }
   317     SDL_Quit();
   317     SDL_Quit();
   318     return (0);
   318     return (0);
   319 }
   319 }