pygame   documentation
||  Home  ||  Help Contents  ||
 
|| pygame || cdrom || constants || cursor || display || draw ||
|| event || font || image || joystick || key || mixer ||
|| mixer_music || mouse || movie || sndarray || surfarray || time ||
|| transform ||
 
|| CD || Channel || Clock || Font || Joystick || Movie ||
|| Overlay || Rect || Sound || Surface ||
 
|| color || cursors || sprite ||

Clock

Clocks are used to track and control the framerate of a game. You create the objects with the time.Clock() function. The clock can be used to limit the framerate of a game, as well as track the time used per frame. Use the pygame.time.Clock() function to create new Clock objects.
get_fps - get the current rate of frames per second
get_rawtime - get number of nondelayed milliseconds between last two calls to tick()
get_time - get number of milliseconds between last two calls to tick()
tick - control timer events

get_fps
Clock.get_fps() -> float

 
get_rawtime
Clock.get_rawtime() -> int

 
get_time
Clock.get_time() -> int

 
tick
Clock.tick([ticks_per_sec_delay]) -> milliseconds