详细描述
Class Time that implements a stopwatch based on either cpu time or wall clock time.
在文件Time.h第25行定义。
所有成员的列表。
构造及析构函数文档
CTime |
( |
bool |
start = true ) |
|
constructor
- 参数:
-
start | if time measurement shall be started |
在文件Time.cpp第17行定义。
成员函数文档
clock_t cur_runtime |
( |
bool |
verbose = false ) |
|
get current cpu runtime
- 参数:
-
verbose | if time shall be printed |
- 返回:
- current cpu runtime
在文件Time.cpp第32行定义。
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.cpp第40行定义。
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.cpp第48行定义。
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.cpp第67行定义。
get current time in seconds
- 返回:
- current time in seconds
在文件Time.h第99行定义。
virtual const char* get_name |
( |
) |
const [virtual] |
start the counter
- 参数:
-
verbose | if start time shall be printed |
- 返回:
- start time in seconds
在文件Time.cpp第58行定义。
stop the counter
- 参数:
-
verbose | if stop time shall be printed |
- 返回:
- stop time in seconds
在文件Time.cpp第85行定义。
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.cpp第76行定义。
成员数据文档
该类的文档由以下文件生成: