I can not work out how to measure time in SFML2.. the tutorials 1.6 seam depreciated. I have searched but all i see is a lot of people asking the question and a few solutions that are embedded in complex code.
Any ideas how to re-write in sfml2?
sf::Clock Clock;
while (App.IsOpened())
{
float Framerate = 1.f / Clock.GetElapsedTime();
Clock.Reset();
}
// Or :
while (App.IsOpened())
{
float Framerate = 1.f / App.GetFrameTime();
}