win8 64位系统 GetTickCount 异常

1     CString str;
2     DWORD k = GetTickCount() - dwk;
3     int hm=k/3600000;
4     int ms=(k-3600000*hm)/60000;
5     int se=(k-3600000*hm-60000*ms)/1000;
6     str.Format("%d:%d:%d",hm,ms,se);
7     AfxMessageBox(str);    

 

 

我早上来开的电脑,到现在也就5,6个小时。

但是显示381个小时。 同事的win8则正常。

可能因为我的win8是测试版?

 

附版本号

---------------------------
Windows Script Host
---------------------------
软件授权服务版本: 6.2.9200.16693

名称: Windows(R), Professional edition
描述: Windows(R) Operating System, VOLUME_KMSCLIENT channel
激活 ID: a98bcd6d-5343-4603-8afe-5908e4611112

---------------------------
确定
---------------------------

posted @ 2013-11-16 14:45  swlilike  阅读(621)  评论(0编辑  收藏  举报