dl
Public 成员函数 | 所有成员列表
dl::TimerRegular类 参考

计时器,t秒触发一次 更多...

#include <dl_timer.h>

Public 成员函数

 TimerRegular ()
 
 TimerRegular (FloatTime max)
 
 ~TimerRegular ()
 
bool Run (FloatTime dt)
 计时,如果到了时间则返回true,且重新计时。 更多...
 
void Set (FloatTime max)
 
void Set (FloatTime max, FloatTime cur)
 
void SetRemain (FloatTime remain)
 
void SetCur (FloatTime cur)
 

详细描述

计时器,t秒触发一次

在文件 dl_timer.h 第 17 行定义.

构造及析构函数说明

◆ TimerRegular() [1/2]

dl::TimerRegular::TimerRegular ( )
inline

在文件 dl_timer.h 第 20 行定义.

◆ TimerRegular() [2/2]

dl::TimerRegular::TimerRegular ( FloatTime  max)
inline

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

◆ ~TimerRegular()

dl::TimerRegular::~TimerRegular ( )
inline

在文件 dl_timer.h 第 22 行定义.

成员函数说明

◆ Run()

bool dl::TimerRegular::Run ( FloatTime  dt)
inline

计时,如果到了时间则返回true,且重新计时。

在文件 dl_timer.h 第 27 行定义.

◆ Set() [1/2]

void dl::TimerRegular::Set ( FloatTime  max)
inline

在文件 dl_timer.h 第 38 行定义.

◆ Set() [2/2]

void dl::TimerRegular::Set ( FloatTime  max,
FloatTime  cur 
)
inline

在文件 dl_timer.h 第 39 行定义.

◆ SetCur()

void dl::TimerRegular::SetCur ( FloatTime  cur)
inline

在文件 dl_timer.h 第 41 行定义.

◆ SetRemain()

void dl::TimerRegular::SetRemain ( FloatTime  remain)
inline

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


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