vc++高精度时间计算

采用时钟频率计算时间, 可以精确到毫秒微秒
多数是用来统计一个函数的执行时间!
GetTickCount() ,你要知道本身是有识差的!
就好比Sleep(0),Sleep(1), 有可能实际比预想的时间要长!

class CTimewatch 
{
   
    
    
public:

CTimewatch() 
	   {
   
    
     
		   QueryPerformanceFrequency(&m_liPerfFreq);
		  // Start();
	   }
	   __int64 Start

猜你喜欢

转载自blog.csdn.net/kaizi318/article/details/109086122