[SDL] Add a timestamp to events

Ryan C. Gordon icculus at icculus.org
Wed Jul 27 21:19:09 PDT 2011


> So, yes, all events that can reasonably have time stamps should have
> times stamps. Ideally timestamps should represent the current GMT
> accurate to at least a nanosecond and never rap... so about 128 bits
> should do. :-) Ok.... so seriously, the time stamp should be either a
> struct timeval (microsecond precision) or a struct timespec
> (nanosecond precision) or their cross platform equivalent.

I think this should be added, with the caveat that systems that don't 
provide their own timestamps will just get the current SDL_GetTicks() 
assigned to it.

--ryan.




More information about the SDL mailing list