64bit timestamp

deeptech71 at gmail.com deeptech71 at gmail.com
Mon Mar 26 14:30:18 UTC 2007


Oliver Fromme wrote:
> deeptech71 at gmail.com wrote:
>> but server-client apps, such as games, where 32bit integer timers
>> must be restarted every 3 weeks
> 
> I don't understand qwhat you're saying there.  Why do they
> have to be restarted every three weeks?  I don't see a
> reason for that.  If an application (game or other, doesn't
> matter) requires time stamps with certain properties, then
> they should use appropriate types for it.  If it doesn't,
> then it's a bug in that application.
> 
> The operating system should only provide ways to retrieve
> sufficiently accurate time stamps.  It's the responsibility
> of the applications to use and store them appropriately,
> according to their equirements.

32bit int, 4294967296 values, 1000 CLOCKS_PER_SEC (millisecond accuracy), that's 
approximately 3 weeks (ok, 6 weeks if unsigned), rewinding timers without client 
notification (server restart) causes error. dont wanna go into deeper explanation...



More information about the freebsd-chat mailing list