The 2nd way is _the_ way as i know. You could also try to improve it by keeping an avarage over a longer time-spanne. Meaning, you keep an array of fps , ie, for the last minute and show the avarage of that. If you truly want to know the fps for ONE second, just stick to the method you mentioned.