- else if (t - fgState.SwapTime > fgState.FPSInterval) {
- float time = 0.001f * (t - fgState.SwapTime);
- float fps = (float) fgState.SwapCount / time;
- fprintf(stderr, "freeglut: %d frames in %.2f seconds = %.2f FPS\n",
- fgState.SwapCount, time, fps);
+ else if( t - fgState.SwapTime > fgState.FPSInterval )
+ {
+ float time = 0.001f * ( t - fgState.SwapTime );
+ float fps = ( float )fgState.SwapCount / time;
+ fprintf( stderr,
+ "freeglut: %d frames in %.2f seconds = %.2f FPS\n",
+ fgState.SwapCount, time, fps );