Write your question here.
I'm trying to implement powerups in Snake, for example: when the snake collects the powerup, the speed increases for 10 sec (using Sleep() ). The code repeats this piece each frame so the powerup will stop when 10 sec have passed. I cannot seem to figure out how chrono and the functions work. So, basically, I need to figure out how to test when 10 sec have passed since collecting the powerup, but if not, the program must continue like usual.