Move git root from Client/ to src/ to track all source code: - Client: Game client source (moved to Client/Client/) - Server: Game server source - GameTools: Development tools - CryptoSource: Encryption utilities - database: Database scripts - Script: Game scripts - rylCoder_16.02.2008_src: Legacy coder tools - GMFont, Game: Additional resources 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
46 lines
1.0 KiB
C++
46 lines
1.0 KiB
C++
/**********************************************************************
|
|
|
|
* CTimer
|
|
|
|
* 파일 : Timer.h
|
|
* 기능 : Caldron Engine내 시간을 관리해주는 시스템이다.
|
|
* 작성일 : 2003.10.24
|
|
* history :
|
|
kamzic072 ( 2003.10.24 )
|
|
|
|
***********************************************************************/
|
|
|
|
#if !defined(CALDRON__TIMER_H_)
|
|
#define CALDRON__TIMER_H_
|
|
|
|
namespace Caldron
|
|
{
|
|
namespace Base
|
|
{
|
|
class CTimer
|
|
{
|
|
private:
|
|
LARGE_INTEGER m_QPFTicksPerSec;
|
|
LARGE_INTEGER m_StartTime;
|
|
float m_fFps;
|
|
float m_fElapsedTime;
|
|
float m_fAppTime;
|
|
int m_iKeepFrame;
|
|
|
|
public:
|
|
virtual ~CTimer();
|
|
|
|
static CTimer& _GetInstance();
|
|
void Init( int keep = -1 );
|
|
float GetElapsedTime() { return m_fElapsedTime; };
|
|
float GetFPS() { return m_fFps; };
|
|
void SetFPS(int frame) { m_iKeepFrame = frame; };
|
|
void FreeFPS() { m_iKeepFrame = -1; };
|
|
float GetAppTime() { return m_fAppTime; };
|
|
void Update();
|
|
};
|
|
}
|
|
}
|
|
|
|
#endif // !defined(CALDRON__TIMER_H_)
|