gametime.h

来自「C人工智能游戏开发的一些实例源代码 C Game development in 」· C头文件 代码 · 共 25 行

H
25
字号

#ifndef _GAMETIME_H_
#define _GAMETIME_H_

#include "time.h"

class GameTime
{

public:

    GameTime();

    void start ();
    void end   ();

    static double dt;

private:
    time_t       m_startTime;
    time_t       m_endTime;
    double       m_elapsedTime;
};

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?