32 _start = std::chrono::high_resolution_clock::now();
64 auto current = std::chrono::high_resolution_clock::now();
65 return std::chrono::duration<FloatTime, std::chrono::seconds::period>
66 (current - _start).count();
101 std::chrono::nanoseconds _deltaExpectNS;
103 std::chrono::high_resolution_clock::time_point _start;
104 std::chrono::high_resolution_clock::time_point _last;
FloatTime GetDelta()
返回帧间隔
FloatTime GetCurrent()
返回游戏运行累计时间
static std::string TimeStamp2String(time_t t, StringFormat sf=StringFormat::HH_MM_SS)
时间戳 -> xxxx-xx-xx xx:xx:xx 具体参见第二个参数
static time_t GetTimeStamp()
返回时间戳
void SetFPS(unsigned fps)
返回fps
static std::string TimeStampDelta2String(time_t t)
时间戳间隔 -> xx:xx:xx