www.pudn.com > GameEngine_src.rar > CTimer.h


#ifndef CTimer_h 
#define CTimer_h 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
class CTimer   
{ 
public: 
	CTimer(); 
	virtual ~CTimer(); 
	int GetFps() { return m_Fps; } 
	void UpdateFps(); 
	unsigned long GetThisTick() { return m_ThisTick; } 
 
private: 
	int m_Fps; 
	int m_Tick; 
	unsigned long m_LastTick; 
	unsigned long m_ThisTick; 
}; 
 
 
 
#endif