Try doing this and see if "2" is printed with 5 sec delay.
std::cout << "1" << std::endl;
sf::sleep(sf::seconds(5.0));
std::cout << "2" << std::endl;
Testing
sleep by moving a window is not the best way, because OS may handle window movement in another thread, I think.