This topic has been discussed a lot in this forum, you'll certainly find many posts about it. Words to search for are SetFramerateLimit, Clock and Sleep.
Anyway, sf::Window::SetFramerateLimit() should be exactly what you need. It automatically waits as long as necessary, limiting the frame rate of the whole thread.