Hi, I'm new to SFML and I've been trying to make a timer using the clock that's built into SFML with a while loop, I also tried using a for loop and Sleep(), but neither seem to work, when I looked at it in debug mode it seems that the main loop keeps running while the timer loop is executing, and I don't see why that should be happening. I've been trying to get this working for a while now and I just can't think straight, is there a simple way to do this?
I'm making a Pong game and just trying to add a pause/count-down between someone scoring and the ball respawning in the middle, I'd appreciate any help.