SigUtil
0.95
Utility modules for modern C++
|
タイムウォッチ More...
Public Member Functions | |
TimeWatch () | |
void | reset () |
初期化して停止 More... | |
void | stop () |
停止 More... | |
void | restart () |
停止解除 More... | |
void | save () |
時間保存 More... | |
uint | get_count () const |
記録したデータ数を取得 More... | |
template<class TimeUnit = std::chrono::milliseconds> | |
long | get_total_time () |
全区間のトータルの時間を取得 More... | |
template<class TimeUnit = std::chrono::milliseconds> | |
auto | get_split_time (uint index) -> Maybe< long > |
指定した区間までのトータル時間(スプリットタイム)を取得 More... | |
template<class TimeUnit = std::chrono::milliseconds> | |
auto | get_lap_time (uint index) -> Maybe< long > |
指定した区間の時間(ラップタイム)を取得 More... | |
タイムウォッチ
Clock 時間の精度(defaultはstd::chrono::system_clock. 高精度はstd::chrono::high_resolution_clock)
Definition at line 60 of file time_watch.hpp.
|
inline |
Definition at line 86 of file time_watch.hpp.
|
inline |
記録したデータ数を取得
Definition at line 128 of file time_watch.hpp.
|
inline |
指定した区間の時間(ラップタイム)を取得
TimeUnit | 取得する時間の単位を指定 |
Definition at line 158 of file time_watch.hpp.
|
inline |
指定した区間までのトータル時間(スプリットタイム)を取得
TimeUnit | 取得する時間の単位を指定 |
Definition at line 146 of file time_watch.hpp.
|
inline |
全区間のトータルの時間を取得
TimeUnit | 取得する時間の単位を指定 |
Definition at line 136 of file time_watch.hpp.
|
inline |
初期化して停止
Definition at line 93 of file time_watch.hpp.
|
inline |
停止解除
Definition at line 107 of file time_watch.hpp.
|
inline |
時間保存
Definition at line 114 of file time_watch.hpp.
|
inline |
停止
Definition at line 100 of file time_watch.hpp.