7 CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
10 TITLE="SDL Library Documentation"
11 HREF="index.html"><LINK
14 HREF="reference.html"><LINK
16 TITLE="SDL_CondWaitTimeout"
17 HREF="sdlcondwaittimeout.html"><LINK
20 HREF="sdlgetticks.html"><META
24 CONTENT="function"></HEAD
35 SUMMARY="Header navigation table"
44 >SDL Library Documentation</TH
52 HREF="sdlcondwaittimeout.html"
66 HREF="sdlgetticks.html"
91 HREF="sdlgetticks.html"
93 > -- Get the number of milliseconds since the SDL library initialization.</DT
98 > -- Wait a specified number of milliseconds before returning.</DT
101 HREF="sdladdtimer.html"
103 > -- Add a timer which will call a callback after the specified number of milliseconds has
107 HREF="sdlremovetimer.html"
109 > -- Remove a timer which was added with
111 HREF="sdladdtimer.html"
116 HREF="sdlsettimer.html"
118 > -- Set a callback to run after the specified number of milliseconds has
123 >SDL provides several cross-platform functions for dealing with time.
124 It provides a way to get the current time, a way to wait a little while,
125 and a simple timer mechanism. These functions give you two ways of moving an
126 object every x milliseconds:
133 >Use a timer callback function. This may have the bad effect that it runs in a seperate thread or uses alarm signals, but it's easier to implement.</P
137 >Or you can get the number of milliseconds passed, and move the object if, for example, 30 ms passed.</P
147 SUMMARY="Footer navigation table"
158 HREF="sdlcondwaittimeout.html"
176 HREF="sdlgetticks.html"
186 >SDL_CondWaitTimeout</TD
192 HREF="reference.html"