1 2 3 4 5 6 7
import pygame class Timer(): def __init__(self, duration): self.start = pygame.time.get_ticks() self.duration = duration