pygame  
pygame
documentation
||  Home  ||  Help Contents  ||
 
|| CD || Channel || Font || Joystick || Rect || Sound || Surface ||
|| pygame || cdrom || constants || display || event || font || image ||
|| joystick || key || mixer || mixer_music || mouse || surfarray || time ||

pygame.time

Contains routines to help keep track of time. The timer resolution on most systems is around 10ms.
 
All times are represented in milliseconds, which is simply Seconds*1000.(therefore 2500 milliseconds is 2.5 seconds)
delay - delay for a number of milliseconds
get_ticks - milliseconds since startup
set_timer - control timer events

delay
pygame.time.delay(millseconds) -> none
 
get_ticks
pygame.time.get_ticks() -> int
 
set_timer
pygame.time.set_timer(eventid, milliseconds) -> int