In that case looks like I can't use that idea, what I've been trying to do is to limit or change the incrementing in some way, I thought the while loop was the way to do it but the code etc. I've seen only deal in very basic methods.
The best example I can give is through a youtube clip of a game called Startopia, take a look at the energy meter on the top left ( a bit blurry I know ), that's what I'm aiming for and I guess it's my main project at the moment.
. Updating numbers
. Limited
. Changes according to pressing a key/mousebutton etc.
. Bonus: getting a bar similar to the one in this video, but I'm focused on just getting the numbers part right for now
I have no problems getting these things to work immediately when it just flat out compiles the stuff I write, the problem is making it all happen while it's on the screen like in the video, I'm sure there's a proper programming word for it but the only thing I can think of is just updating integers on the screen.
This is why I thought of using the seconds and milliseconds in SFML but if that's not possible then I've got to keep reading again.