You could do it like this assuming c++ being used:
#include <sstream>
sf::String fps;
std::stringstream ss;
ss << 1.f / renderWindow.GetFrameTime();
fps.SetText(ss.str());
fps.SetPosition(10, 10);
fps.SetColor(sf::Color::Black);
renderWindow.Draw(fps);