Hi,
I'm trying to make a function that would draw how many FPS were displayed each second.
The original function is:
double app_properties::draw_fps()
{
stringstream ss;
getfps=1/(App.GetFrameTime()); //getfps is a float declared in the app_properties class
ss << getfps;
dfps.SetText("FPS: " + (ss.str()).substr(0,2)); //dfps is a font string declared in the app_properties class
App.Draw(dfps);
return getfps;
}
How could I change this and make it draw the FPS only each second?
This is probably very easy to do, but I'm being dumb...
Thanks in advance!