Framerate ?

How can I measure the performance of my PC, how can I measure the FPS in my opengl program ?

Calculate the time taken for a frame to reder, and then fps = 1.0 / time.

timeGetTime() usually works OK on Win32. It will return the time in milliseconds since Windows was last started.

I think it’s better to measure the time it takes to draw, for example, 50 frames and then do that calculation. So you’ll have the fps updated about every seconds without a different number flashing on the screen 60 times a second.
I do it in this way.

Sure, thats another way to do it. In that case, fps = 50 / time. Or in general, fps = number_of_frames / time, just in case Tebo didn’t knew it.