libcdos-fw
CFTimer类 参考

CFTimer 计时器 更多...

#include <CFTimer.h>

Public 成员函数

 CFTimer ()
 创建一个CFTimer实例 更多...
 
double elapsed () const
 函数简单地测量自对象创建后所流逝的时间。 更多...
 
double elapsedMax () const
 get the estimated maxinum time for elapsed() 更多...
 
double elapsedMin () const
 get the estimated mininum time for elapsed() 更多...
 
void restart ()
 在time变为0之前,重启 更多...
 
 ~CFTimer ()
 销毁一个CFTimer实例
 

详细描述

CFTimer 计时器

定时器对象测量经过的时间。

建议实现测量挂钟而不是CPU时间,因为预期用途是在总运行时间比只是进程或CPU时间更重要的 系统上进行性能测量。

构造及析构函数说明

§ CFTimer()

CFTimer::CFTimer ( )

创建一个CFTimer实例

成员函数说明

§ elapsed()

double CFTimer::elapsed ( ) const

函数简单地测量自对象创建后所流逝的时间。

参见
restart()
返回
double 秒数

§ elapsedMax()

double CFTimer::elapsedMax ( ) const

get the estimated maxinum time for elapsed()

参见
elapsed_min()
返回
the maxinum value for elapsed()

§ elapsedMin()

double CFTimer::elapsedMin ( ) const

get the estimated mininum time for elapsed()

参见
elapsed_max()
返回
the mininum value for elapsed()

§ restart()

void CFTimer::restart ( )

在time变为0之前,重启


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