time_point 類別
time_point 描述代表時間點的型別。 它保留期間型別的物件,這個物件儲存從範本引數Clock所表示的時間開始所耗用時間。
template<
class Clock,
class Duration = typename Clock::duration
>
class time_point;
成員
公用 Typedefs
Name |
說明 |
---|---|
time_point::clock |
範本參數Clock的同義資料表。 |
time_point::duration |
範本參數Duration的同義資料表。 |
time_point::period |
巢狀型別名稱duration::period的同義資料表。 |
time_point::rep |
巢狀型別名稱duration::rep的同義資料表。 |
公用建構函式
Name |
說明 |
---|---|
建構 time_point 物件。 |
公用方法
Name |
說明 |
---|---|
指定time_point::ref的上限。 |
|
指定 time_point::ref的下限。 |
|
傳回已儲存的 duration 值。 |
公用運算子
Name |
說明 |
---|---|
將指定值加至儲存的期間。 |
|
從儲存的期間減去某個值。 |
需求
**標頭:**chrono
**命名空間:**std::chrono