Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Im using open GL to write a game and i want to look at my fps, so i figured I would start a variable, and add 1 to it for each time it printed a frame to a screen, then divide that by then number of seconds that had passed, and reset it every couple seconds to keep it accurate, but i dont know how to get the time or the seconds so i dont know how to do this... also if there is a better way it would be very appreciated
0 · ·