C++中一个关于时间的问题?
来源:百度知道 编辑:UC知道 时间:2024/06/22 03:43:19
CTime t=CTime::GetCurrentTime();
与
CTime t=GetCurrentTime();
这两种方法得到的 t 有什么不同?
这两种方法得到的 t 中的数值是不同的,但这不同代表什么呢? 请回答者仔细看问题或亲手做一下告诉我,谢谢!
与
CTime t=GetCurrentTime();
这两种方法得到的 t 有什么不同?
这两种方法得到的 t 中的数值是不同的,但这不同代表什么呢? 请回答者仔细看问题或亲手做一下告诉我,谢谢!
用msdn查一下
MSDN:
The GetCurrentTime is obsolete. This function is provided only for compatibility with 16-bit versions of Windows. Win32-based applications should use the GetTickCount function or look up the System Up Time counter in the performance data in the registry key HKEY_PERFORMANCE_DATA.
就是说GetCurrentTime()是GetTickCount()的16位版本.
没不同。谢谢!