标签:时间 for sleep pre bsp double query 实时 nbsp
double t0,t1; __int64 Freq = 0; __int64 Count = 0; if (QueryPerformanceFrequency((LARGE_INTEGER*)&Freq)&& Freq > 0&& QueryPerformanceCounter((LARGE_INTEGER*)&Count)){ t0=(double)Count / (double)Freq * 1000.0; } Sleep(1); if (QueryPerformanceFrequency((LARGE_INTEGER*)&Freq) && Freq > 0 && QueryPerformanceCounter((LARGE_INTEGER*)&Count)) { t1 = (double)Count / (double)Freq * 1000.0; }
标签:时间 for sleep pre bsp double query 实时 nbsp
原文地址:http://www.cnblogs.com/baldermurphy/p/7154539.html