loop: Sleep(1.0) # yield once per second set TimeLeft -= 1 if (TimeLeft <= 0): break # leave the loop