void rendering::render_time(sf::RenderWindow& screen,const GameInfo& stats) { static sf::Text text; static sf::Font f; f.loadFromFile("../data/Font/Loma.ttf"); text.setFont(f); text.setColor(sf::Color::Red); text.setCharacterSize(24); text.setPosition(700,100); text.setString(stats.GetFormattedElapsed()); screen.draw(text); text.setString(std::to_string(stats.getFps())); text.setPosition(700,125); screen.draw(text); }