time stamped events, was [SDL] Detecting Double Clicks
David Olofson
david.olofson at reologica.se
Fri Jan 18 08:23:01 PST 2002
On Friday 18 January 2002 01:00, Bob Pendleton wrote:
> David Olofson wrote:
[...]
> > More bits? Well, the only time you *really* need that is if you're
> > potentially going to sleep for more than 49 days, and then want to
> > find out how long you were asleep. :-)
>
> In systems like MUDs and other longer term online games there are many
> places where you need to keep track of time periods longer than 49
> days.
Yes, but that's not a problem if you use SDL_GetTicks() to calculate
delta times, which you then translate into whatever format you may need -
as long as you do that at least every 49 days.
Of course, it's *simpler* to just use Uint64, but... I haven't even used
a true 64 bit system so far! ;-)
[...feeping creatures...]
> standard. Which is why I have sympathy for Mattias when he feels he is
> defending SDL from feature creep.
...and IMHO, the answer is right there; there should be only on, simple
and portable call. Any higher level stuff should be handled by optional,
stand-alone libraries. We should discuss the latter, and not whether or
not SDL is missing some timer call. (IMHO, it isn't - with the possible
exception of some way of figuring out what accuracy to expect.)
//David Olofson --- Programmer, Reologica Instruments AB
.- M A I A -------------------------------------------------.
| Multimedia Application Integration Architecture |
| A Free/Open Source Plugin API for Professional Multimedia |
`----------------------------> http://www.linuxdj.com/maia -'
.- David Olofson -------------------------------------------.
| Audio Hacker - Open Source Advocate - Singer - Songwriter |
`-------------------------------------> http://olofson.net -'
More information about the SDL
mailing list