How to calculate FPS in OpenGL?
You should put it in the display loop. Here's an article that explains some intricacies of game loops that you should read.
You should put it in the display loop. Here's an article that explains some intricacies of game loops that you should read.