Countdown timer in Pygame
On this page you will find what you are looking for http://www.pygame.org/docs/ref/time.html#pygame.time.get_ticksYou download ticks once before beginning the countdown (which can be a trigger in the game – the key event, whatever). For example: