It's still not clear what you're looking for, though I'm not sure there's much we can do about the massive language barrier here.
In the hopes of answering whatever it was you were trying to ask, here are a few random statements:
- There's nothing hugely "wrong" with that example code, though it's a bit odd to use time.h instead of std::chrono if you have access to C++11 (among many other smaller issues).
- You will never get a program that runs in the exact same amount of time on every machine, every time you run it. That simply isn't possible, and it never will be. Instead, you should write code that won't break if something takes a few milliseconds longer than you expected.
- If you don't know how to make games that can cope with this variance in execution speed, read
http://gameprogrammingpatterns.com/game-loop.html. If you're making some other kind of program, it shouldn't be much of a problem at all.
- If you want to know how SFML's time-related classes work,
just go read the source code. If you're any good at C++, SFML's source is very easy to read.
If none of that answered your question, please be far more specific and detailed in your next post, so that we might be able to figure out what you're trying to say.