共用方式為


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::time_point 建構函式

建構 time_point 物件。

公用方法

Name

說明

time_point::max 方法

指定time_point::ref的上限。

time_point::min 方法

指定 time_point::ref的下限。

time_point::time_since_epoch 方法

傳回已儲存的 duration 值。

公用運算子

Name

說明

time_point::operator+= 運算子

將指定值加至儲存的期間。

time_point::operator-= 運算子

從儲存的期間減去某個值。

需求

**標頭:**chrono

**命名空間:**std::chrono

請參閱

參考

<chrono>

其他資源

C++ 標準程式庫標頭檔