dl
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.h17 行定义.

构造及析构函数说明

◆ TimerRegular() [1/2]

dl::TimerRegular::TimerRegular ( )
inline

在文件 dl_timer.h20 行定义.

◆ TimerRegular() [2/2]

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

在文件 dl_timer.h21 行定义.

◆ ~TimerRegular()

dl::TimerRegular::~TimerRegular ( )
inline

在文件 dl_timer.h22 行定义.

成员函数说明

◆ Run()

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

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

在文件 dl_timer.h27 行定义.

◆ Set() [1/2]

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

在文件 dl_timer.h38 行定义.

◆ Set() [2/2]

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

在文件 dl_timer.h39 行定义.

◆ SetCur()

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

在文件 dl_timer.h41 行定义.

◆ SetRemain()

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

在文件 dl_timer.h40 行定义.


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