运行时:Linux 和 Windows 2000上的高性能编程技术用 QueryPerformanceCounter() 计算秒 LARGE_INTEGER tim, freq; double seconds; QueryPerformanceCounter(&tim); QeryPerformanceFrequency(&freq); seconds = (double)tim / (double) freq;
运行时:Linux 和 Windows 2000上的高性能编程技术
ReplyDelete用 QueryPerformanceCounter() 计算秒
LARGE_INTEGER tim, freq;
double seconds;
QueryPerformanceCounter(&tim);
QeryPerformanceFrequency(&freq);
seconds = (double)tim / (double) freq;