test/testsprite.c
changeset 2786 6bacfecbf27e
parent 2784 9bbe3bd94be8
child 2790 8c9fa61a521c
equal deleted inserted replaced
2785:fa1095d42a5b 2786:6bacfecbf27e
   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 		double fps = ((double) frames * 1000) / (now - then);
   314         double fps = ((double) frames * 1000) / (now - then);
   315         printf("%2.2f frames per second\n", fps);
   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 }