ticker.h
来自「国外一套很好的游戏代码,款经典的小游戏 希望大家提出宝贵意见 让我们一起进步」· C头文件 代码 · 共 24 行
H
24 行
/* ticker.h (c) Richard Thrippleton Licensing terms are in the 'LICENSE' file If that file is not included with this source then permission is not given to use this source in any way whatsoever.*/class ticker //FPS regulator{ public: ticker(int fps); //Constructor, give desired fps value void start(); //Start the timer void tick(); //Mark next tick and block for appropriate time double afps; //Actual fps private: long stm,otm,ntm; //Start 500 tick segment, before, and after times long pas; //Precalculated delay required long tcks; //Ticks so far};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?