pygame / docs / ref / pygame_time.html

Full commit
<body bgcolor=#dddddd text=#333377 link=#7777bb vlink=#7777bb>

<table border=0 width=100% cellpadding=0 cellspacing=0 bgcolor=#f5f5f5><tr valign=top>
<td rowspan=2><table border=0 cellpadding=5 cellspacing=0 bgcolor=#333377>
<tr height=86 align=left><td valign=middle><font color=#ffffff size=+5>
	<a href=../index.html><font size=+5 color=#ffffff><i><b>
<td valign=middle><tt><font color=#dddddd><br>
</td></tr></table></td><td width=100% align=center valign=middle>

	<a href=>Home</a> &nbsp;||&nbsp;
	<a href=../index.html>Help Contents</a> &nbsp;||

|| <a href=CD.html>CD</a> || 
<a href=Channel.html>Channel</a> || 
<a href=Font.html>Font</a> || 
<a href=Joystick.html>Joystick</a> || 
<a href=Rect.html>Rect</a> || 
<a href=Sound.html>Sound</a> || 
<a href=Surface.html>Surface</a> ||<br>
|| <a href=pygame.html>pygame</a> || 
<a href=pygame_cdrom.html>cdrom</a> || 
<a href=pygame_constants.html>constants</a> || 
<a href=pygame_display.html>display</a> || 
<a href=pygame_event.html>event</a> || 
<a href=pygame_font.html>font</a> || 
<a href=pygame_image.html>image</a> ||<br>
|| <a href=pygame_joystick.html>joystick</a> || 
<a href=pygame_key.html>key</a> || 
<a href=pygame_mixer.html>mixer</a> || 
<a href=pygame_mixer_music.html>mixer_music</a> || 
<a href=pygame_mouse.html>mouse</a> || 
<a href=pygame_music.html>music</a> || 
<a href=pygame_surfarray.html>surfarray</a> ||<br>
|| <a href=pygame_time.html>time</a> ||<br>

<h2 align=center>pygame.time</h2>
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)


<tr><td><a href=#delay>delay</a></td><td> -
delay for a number of milliseconds</td></tr>

<tr><td><a href=#get_ticks>get_ticks</a></td><td> -
milliseconds since startup</td></tr>

<tr><td><a href=#set_timer>set_timer</a></td><td> -
control timer events</td></tr>



<a name=delay><font size=+2><b>delay
</b></font><br><font size=+1><tt>
pygame.time.delay(millseconds) -> none
Will pause for a given number of milliseconds.

<a name=get_ticks><font size=+2><b>get_ticks
</b></font><br><font size=+1><tt>
pygame.time.get_ticks() -> int
This is the time in milliseconds since the pygame.time was

<a name=set_timer><font size=+2><b>set_timer
</b></font><br><font size=+1><tt>
pygame.time.set_timer([millseconds, eventid]) -> int
Every given number of milliseconds, a new event with
the given event id will be placed on the event queue.
The timer will run indefinitely, until <u>set_timer()</u> is
called with no arguments. Calling with no arguments stops
the running timer.