每秒刻度:QueryPerformanceFrequency的替代品

时间:2013-10-09 06:22:08

标签: windows mfc gettickcount

QueryPerformanceFrequency在我们的系统上崩溃,

使用flowwing代码作为替代方案是否可行

LARGE_INTEGER pCount;
LARGE_INTEGER pCount2;
QueryPerformanceCounter(&pCount);
Sleep(1000);
QueryPerformanceCounter(&pCount2);
pCount2.QuadPart-pCount.QuadPart;

p / w pCount2和pCount的差异是否给我滴答计数??

或者我们是否有任何其他替代函数给出tickCount ??

0 个答案:

没有答案