SFML function does all the job with setting up timestep?

Usually i set up timestep something like this:

timestep=1.0f/60.0f;
if(time>=timestep)
{
update;
time-=timestep;
}


But SFML has the next function: window.setFramerateLimit(). Does it do the same thing i described above?