Re: 64bit timestamp

看板FB_chat作者時間19年前 (2007/03/26 22:31), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串11/16 (看更多)
Oliver Fromme wrote: > deeptech71@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... _______________________________________________ freebsd-chat@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-chat To unsubscribe, send any mail to "freebsd-chat-unsubscribe@freebsd.org"
文章代碼(AID): #161zbV00 (FB_chat)
討論串 (同標題文章)
文章代碼(AID): #161zbV00 (FB_chat)