Restructure repository to include all source folders
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>
This commit is contained in:
45
GameTools/CaldronBase/Timer.h
Normal file
45
GameTools/CaldronBase/Timer.h
Normal file
@@ -0,0 +1,45 @@
|
||||
/**********************************************************************
|
||||
|
||||
* CTimer
|
||||
|
||||
* <20><><EFBFBD><EFBFBD> : Timer.h
|
||||
* <20><><EFBFBD><EFBFBD> : Caldron Engine<6E><65> <20>ð<EFBFBD><C3B0><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ִ<EFBFBD> <20>ý<EFBFBD><C3BD><EFBFBD><EFBFBD>̴<EFBFBD>.
|
||||
* <20>ۼ<EFBFBD><DBBC><EFBFBD> : 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_)
|
||||
Reference in New Issue
Block a user