SDL_GetTicks goes backwards

The attached program (a slightly modified version of Jakob Thomsen’s
WaveGL.c) puts a shell around SDL_GetTicks to check for time going
backwards,
like this:

If you use the supplied Uint32 type then you should almost never see
time going “backwards” on any system:

Uint32 ticks = SDL_GetTicks();-- 

Scott Lahteine <@Scott_Lahteine>

“No universe is perfect which leaves no room for improvement.”
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: text/enriched
Size: 465 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20021224/dc198c87/attachment.bin

With due respect, I’d have to call that the “ostrich” school of programming -
bury your head in the sand so you don’t notice the errors. I cannot recommend
against this approach strongly enough, it is the stuff unreliable systems are
made of.

Regards,

DanielOn Wednesday 25 December 2002 06:48, Scott Lahteine wrote:

The attached program (a slightly modified version of Jakob Thomsen’s
WaveGL.c) puts a shell around SDL_GetTicks to check for time going
backwards,
like this:

If you use the supplied Uint32 type then you should almost never see
time going “backwards” on any system:

Uint32 ticks = SDL_GetTicks();