算法程序中精确统计运行时间的方法(C/C++)
    
                
摘要:关键函数 在Windows.h中 QueryPerformanceFrequency,QueryPerformanceCounter示例 1 LARGE_INTEGER litmp; 2 double frequency,runTime,minus;//CPU时钟频率,运行时间,运行周期数之差 3 LONGLONG timeStart,timeEnd;//排序前周期数,排序执行后周期数 4 QueryPerformanceFrequency(&litmp); 5 frequency=(double) litmp.QuadPart; 6 QueryPerformanceCounter(&
        
阅读全文
 
                
                    posted @ 
2011-10-26 16:07 
Auguster
        
阅读(1184) 
         
        推荐(1)