[SDL] SDL_GetTicks() goes backwards
drevil at warpcore.org
Tue Dec 24 10:44:01 PST 2002
On Tue, 2002-12-24 at 12:30, David Olofson wrote:
> Well, yeah. However, 'man gettimeofday' says:
> "The tv_sec member of the struct is the number of seconds since the
> Epoch (see time(2)), and tv_usec is the amount of microseconds
> past the current tv_sec value."
> If this way of describing it implies that time cannot go backwards,
> then there must be a bug in the way NTP adjusts time.
But what if your clock has gone too far forward? NTP corrects your time
and suddenly you're set backwards in time for a few seconds.
Technically then, time has gone backwards...
More information about the SDL