supertankhzt 发表于 2011-10-28 10:35:41

GetTickCount函数返回Long,那开机时间很长会不会溢出?

GetTickCount函数获取自windows启动以来经历的时间长度(毫秒)那开机几十天没关过再调用此函数会不会溢出?

Tesla.Angela 发表于 2011-10-28 12:45:28


The elapsed time is stored as a DWORD value. Therefore, the time will wrap around to zero if the system is run continuously for 49.7 days.

http://technet.microsoft.com/zh-cn/library/ms885645(en-us).aspx

supertankhzt 发表于 2011-10-29 00:18:47

Tesla.Angela 发表于 2011-10-28 12:45 static/image/common/back.gif
http://technet.microsoft.com/zh-cn/library/ms885645(en-us).aspx

原来如此
页: [1]
查看完整版本: GetTickCount函数返回Long,那开机时间很长会不会溢出?