SFML community forums

Help => Graphics => Topic started by: OniLinkPlus on November 21, 2010, 07:42:30 am

Title: GetFrameTime returns time for current or previous frame?
Post by: OniLinkPlus on November 21, 2010, 07:42:30 am
The documentation is slightly confusing. It says:
Get the time elapsed since the last frame.

This function returns the time elapsed during the last frame. This can be useful for calculating the framerate, or for updating the application's objects.

It has two conflicting meanings: elapsed time so far in current frame, and elapsed time in previous frame.

Which of the two does it mean?
Title: GetFrameTime returns time for current or previous frame?
Post by: Laurent on November 21, 2010, 10:28:51 am
It is the elapsed time in previous frame.

I've updated the doc, thank you.