📄 systemclock.h
字号:
// --------------------------------------------------------------------------
// Dingus project - a collection of subsystems for game/graphics applications
// --------------------------------------------------------------------------
#ifndef __SYSTEM_CLOCK_H
#define __SYSTEM_CLOCK_H
#include "../utils/Singleton.h"
namespace dingus {
class CSystemClock : public CSingleton<CSystemClock> {
public:
void reset( double time ) { mResetTime = time; }
void setTimes( double time, double lastPerformDuration, int performCount );
double getTime() const { return mTime; }
double getLastPerformDuration() const { return mLastPerformDuration; }
int getPerformCount() const { return mPerformCount; }
private:
CSystemClock() : mResetTime(0), mTime(0), mLastPerformDuration(0), mPerformCount(0) { }
IMPLEMENT_SIMPLE_SINGLETON(CSystemClock);
private:
double mResetTime;
double mTime;
double mLastPerformDuration;
int mPerformCount;
};
}; // namespace
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -