共计 283 个字符,预计需要花费 1 分钟才能阅读完成。
double Millesecond() { LARGE_INTEGER frequency; LARGE_INTEGER timeStart; QueryPerformanceFrequency(&frequency); // 返回每秒,cpu 所使用的时钟数 QueryPerformanceCounter(&timeStart); double dfrequency = (double)frequency.QuadPart; double dtimeStart = (double)timeStart.QuadPart; return dtimeStart * 1000.0f / dfrequency; }
正文完