1.引入windows.h头文件
2.LARGE_INTEGER tStart,tEnd,tc;
3. QueryPerformanceFrequency(&tc);
QueryPerformanceCounter(&tStart);
QueryPerformanceCounter(&tEnd);
4.double time = (double)(tEnd.QuadPart - tStart.QuadPart) /(double)tc.QuadPart
1.引入windows.h头文件
2.LARGE_INTEGER tStart,tEnd,tc;
3. QueryPerformanceFrequency(&tc);
QueryPerformanceCounter(&tStart);
QueryPerformanceCounter(&tEnd);
4.double time = (double)(tEnd.QuadPart - tStart.QuadPart) /(double)tc.QuadPart