?? timer.h
字號:
#if !defined _TIMER_H
#define _TIMER_H
class CTIMER {
public:
inline CTIMER() { memset(this, 0, sizeof(*this));}
inline void Start() { QueryPerformanceCounter(&m_sStart); }
inline void Stop() { QueryPerformanceCounter(&m_sStop); }
inline double OutputTime()
{
QueryPerformanceFrequency(&m_liFreq);
__int64 i,j;
i=m_sStop.LowPart+((__int64)m_sStop.HighPart<<32);
j=m_sStart.LowPart+((__int64)m_sStart.HighPart<<32);
return (double)(( i - j )/(double)m_liFreq.LowPart);
} // data members
LARGE_INTEGER m_sStart, m_sStop, m_liFreq;
};
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -