Mercurial > sdl-ios-xcode
diff docs/html/sdladdtimer.html @ 55:55f1f1b3e27d
Added new docs for SDL 1.2.1
author | Sam Lantinga <slouken@lokigames.com> |
---|---|
date | Sun, 10 Jun 2001 19:31:57 +0000 |
parents | 74212992fb08 |
children | e5bc29de3f0a |
line wrap: on
line diff
--- a/docs/html/sdladdtimer.html Sun Jun 10 18:39:47 2001 +0000 +++ b/docs/html/sdladdtimer.html Sun Jun 10 19:31:57 2001 +0000 @@ -4,7 +4,7 @@ >SDL_AddTimer</TITLE ><META NAME="GENERATOR" -CONTENT="Modular DocBook HTML Stylesheet Version 1.61 +CONTENT="Modular DocBook HTML Stylesheet Version 1.64 "><LINK REL="HOME" TITLE="SDL Library Documentation" @@ -73,7 +73,7 @@ ><DIV CLASS="REFNAMEDIV" ><A -NAME="AEN7854" +NAME="AEN7933" ></A ><H2 >Name</H2 @@ -82,14 +82,14 @@ ><DIV CLASS="REFSYNOPSISDIV" ><A -NAME="AEN7857" +NAME="AEN7936" ></A ><H2 >Synopsis</H2 ><DIV CLASS="FUNCSYNOPSIS" ><A -NAME="AEN7858" +NAME="AEN7937" ></A ><P ></P @@ -125,7 +125,7 @@ ><DIV CLASS="REFSECT1" ><A -NAME="AEN7867" +NAME="AEN7946" ></A ><H2 >Description</H2 @@ -153,9 +153,15 @@ >.</P ><P >The timer callback function may run in a different thread than your -main program, and so shouldn't call any functions from within itself.</P +main program, and so shouldn't call any functions from within itself. +You may always call <A +HREF="sdlpushevent.html" +>SDL_PushEvent</A +>, however.</P ><P ->The maximum resolution of this timer is 10 ms, which means that if +>The granularity of the timer is platform-dependent, but you should count +on it being at least 10 ms as this is the most common number. +This means that if you request a 16 ms timer, your callback will run approximately 20 ms later on an unloaded system. If you wanted to set a flag signaling a frame update at 30 frames per second (every 33 ms), you might set a @@ -173,7 +179,7 @@ ><DIV CLASS="REFSECT1" ><A -NAME="AEN7878" +NAME="AEN7958" ></A ><H2 >Return Value</H2 @@ -187,7 +193,7 @@ ><DIV CLASS="REFSECT1" ><A -NAME="AEN7882" +NAME="AEN7962" ></A ><H2 >Examples</H2 @@ -200,7 +206,7 @@ ><DIV CLASS="REFSECT1" ><A -NAME="AEN7886" +NAME="AEN7966" ></A ><H2 >See Also</H2 @@ -211,6 +217,13 @@ CLASS="FUNCTION" >SDL_RemoveTimer</TT ></A +>, +<A +HREF="sdlpushevent.html" +><TT +CLASS="FUNCTION" +>SDL_PushEvent</TT +></A ></P ></DIV ><DIV