Hey guys, I am following a tutorial for SFML, and it is a bit outdated. The tutorial is using a function called GetFrameTime that is no longer supported in SFML.
void GameObjectManager::UpdateAll()
{
std::map<std::string,VisibleGameObject*>::const_iterator itr =
_gameObjects.begin();
float timeDelta = Game::GetWindow().GetFrameTime();
while(itr != _gameObjects.end())
{
itr->second->Update(timeDelta);
itr++;
}
}
How would I replace the GetFrameTime function here?