dl
Public 类型 | Public 成员函数 | 静态 Public 成员函数 | 友元 | 所有成员列表
dl::Time类 参考

#include <dl_time.h>

Public 类型

enum class  StringFormat { HH_MM_SS , YYYY_MM_DD , YYYY_MM_DD_HH_MM , YYYY_MM_DD_HH_MM_SS }
 

Public 成员函数

 Time ()
 
FloatTime GetDelta ()
 返回帧间隔 更多...
 
unsigned GetFPS ()
 返回fps 更多...
 
void SetFPS (unsigned fps)
 返回fps 更多...
 
FloatTime GetCurrent ()
 返回游戏运行累计时间 更多...
 

静态 Public 成员函数

static time_t GetTimeStamp ()
 返回时间戳 更多...
 
static std::string TimeStampDelta2String (time_t t)
 时间戳间隔 -> xx:xx:xx 更多...
 
static std::string TimeStamp2String (time_t t, StringFormat sf=StringFormat::HH_MM_SS)
 时间戳 -> xxxx-xx-xx xx:xx:xx 具体参见第二个参数 更多...
 

友元

class System
 

详细描述

在文件 dl_time.h 第 21 行定义.

成员枚举类型说明

◆ StringFormat

enum class dl::Time::StringFormat
strong
枚举值
HH_MM_SS 
YYYY_MM_DD 
YYYY_MM_DD_HH_MM 
YYYY_MM_DD_HH_MM_SS 

在文件 dl_time.h 第 81 行定义.

构造及析构函数说明

◆ Time()

dl::Time::Time ( )
inline

在文件 dl_time.h 第 25 行定义.

成员函数说明

◆ GetCurrent()

FloatTime dl::Time::GetCurrent ( )
inline

返回游戏运行累计时间

在文件 dl_time.h 第 62 行定义.

◆ GetDelta()

FloatTime dl::Time::GetDelta ( )
inline

返回帧间隔

在文件 dl_time.h 第 40 行定义.

◆ GetFPS()

unsigned dl::Time::GetFPS ( )
inline

返回fps

在文件 dl_time.h 第 47 行定义.

◆ GetTimeStamp()

static time_t dl::Time::GetTimeStamp ( )
static

返回时间戳

◆ SetFPS()

void dl::Time::SetFPS ( unsigned  fps)
inline

返回fps

在文件 dl_time.h 第 54 行定义.

◆ TimeStamp2String()

static std::string dl::Time::TimeStamp2String ( time_t  t,
StringFormat  sf = StringFormat::HH_MM_SS 
)
static

时间戳 -> xxxx-xx-xx xx:xx:xx 具体参见第二个参数

注解
非线程安全

◆ TimeStampDelta2String()

static std::string dl::Time::TimeStampDelta2String ( time_t  t)
static

时间戳间隔 -> xx:xx:xx

注解
最多计算到小时

友元及相关函数文档

◆ System

friend class System
friend

在文件 dl_time.h 第 23 行定义.


该类的文档由以下文件生成: