公有成员 | 静态公有成员 | 保护属性

CTime类参考


详细描述

Class Time that implements a stopwatch based on either cpu time or wall clock time.

在文件Time.h25行定义。

继承图,类CTime
Inheritance graph
[图例]

所有成员的列表。

公有成员

 CTime (bool start=true)
virtual ~CTime ()
clock_t cur_runtime (bool verbose=false)
clock_t cur_runtime_diff (bool verbose=false)
float64_t cur_runtime_diff_sec (bool verbose=false)
float64_t start (bool verbose=false)
float64_t cur_time_diff (bool verbose=false)
float64_t time_diff_sec (bool verbose=false)
float64_t stop (bool verbose=false)
virtual const char * get_name () const

静态公有成员

static float64_t get_runtime ()
static float64_t get_curtime ()

保护属性

clock_t start_runtime
float64_t start_time
float64_t stop_time

构造及析构函数文档

CTime ( bool  start = true  ) 

constructor

参数:
start if time measurement shall be started

在文件Time.cpp17行定义。

~CTime (  )  [virtual]

在文件Time.cpp28行定义。


成员函数文档

clock_t cur_runtime ( bool  verbose = false  ) 

get current cpu runtime

参数:
verbose if time shall be printed
返回:
current cpu runtime

在文件Time.cpp32行定义。

clock_t cur_runtime_diff ( bool  verbose = false  ) 

get time difference between start and NOW

参数:
verbose if time difference shall be printed
返回:
time difference between start and NOW

在文件Time.cpp40行定义。

float64_t cur_runtime_diff_sec ( bool  verbose = false  ) 

get time difference between start and NOW in seconds (wall clock time)

参数:
verbose if time difference shall be printed
返回:
time difference between start and NOW in seconds

在文件Time.cpp48行定义。

float64_t cur_time_diff ( bool  verbose = false  ) 

get time difference between start and NOW in seconds (wall clock time)

参数:
verbose if time difference shall be printed
返回:
time difference between start and NOW in seconds

在文件Time.cpp67行定义。

static float64_t get_curtime (  )  [static]

get current time in seconds

返回:
current time in seconds

在文件Time.h99行定义。

virtual const char* get_name (  )  const [virtual]
返回:
object name

实现了CSGObject

在文件Time.h109行定义。

static float64_t get_runtime (  )  [static]

get runtime

返回:
runtime

在文件Time.h89行定义。

float64_t start ( bool  verbose = false  ) 

start the counter

参数:
verbose if start time shall be printed
返回:
start time in seconds

在文件Time.cpp58行定义。

float64_t stop ( bool  verbose = false  ) 

stop the counter

参数:
verbose if stop time shall be printed
返回:
stop time in seconds

在文件Time.cpp85行定义。

float64_t time_diff_sec ( bool  verbose = false  ) 

get time difference between start and stop in seconds

参数:
verbose if time difference shall be printed
返回:
time difference between start and stop in seconds

在文件Time.cpp76行定义。


成员数据文档

clock_t start_runtime [protected]

start runtime

在文件Time.h113行定义。

float64_t start_time [protected]

start time

在文件Time.h116行定义。

float64_t stop_time [protected]

stop time

在文件Time.h118行定义。


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

SHOGUN Machine Learning Toolbox - Documentation