This prints 0 over and over again:
#include <SFML/Window.hpp>
#include <iostream>
int main()
{
sf::Window window( sf::VideoMode( 800, 600 ), "" );
while( window.IsOpened() )
{
sf::Event event;
while( window.GetEvent( event ) )
if( event.Type == sf::Event::KeyPressed || event.Type == sf::Event::Closed )
window.Close();
sf::Sleep( 0.5 );
window.Display();
std::cout << window.GetFrameTime() << std::endl;
}
}