Contains routines to help keep track of time.


  • pygame.time.get_ticks() -> int
  • - milliseconds since initialization
  • pygame.time.delay(millseconds) -> none
  • - delay for a number of milliseconds


    pygame.time.get_ticks() -> int

    This is the time in milliseconds since the beginning. The timer has a resolution of about 10 milliseconds (give or take depending on the platform).


    pygame.time.delay(millseconds) -> none

    Will pause for a given number of milliseconds.