comparison test/testsprite.c @ 2784:9bbe3bd94be8

(none)
author Sam Lantinga <slouken@libsdl.org>
date Tue, 25 Nov 2008 00:48:25 +0000
parents 103c6fec2a60
children 6bacfecbf27e
comparison
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 }