Pygame Time Time
clock = pygame.time.Clock()
clock.tick(40)
# no more than 40 frames per second
Rocku0
clock = pygame.time.Clock()
clock.tick(40)
# no more than 40 frames per second
pygame.time.get_ticks()