cppreference.com
建立賬戶
登入
名稱空間
頁面
討論
變體
檢視
檢視
編輯
歷史
操作
std::
clock_t
來自 cppreference.com
<
cpp
|
chrono
|
c
C++
編譯器支援
自由(freestanding)與宿主(hosted)
語言
標準庫
標準庫標頭檔案
具名要求
特性測試宏
(C++20)
語言支援庫
概念庫
(C++20)
診斷庫
記憶體管理庫
超程式設計庫
(C++11)
通用工具庫
容器庫
迭代器庫
範圍庫
(C++20)
演算法庫
字串庫
文字處理庫
數值庫
日期和時間庫
輸入/輸出庫
檔案系統庫
(C++17)
併發支援庫
(C++11)
執行控制庫
(C++26)
技術規範
符號索引
外部庫
[編輯]
日期和時間庫
時間點
time_point
(C++11)
clock_time_conversion
(C++20)
clock_cast
(C++20)
時長
duration
(C++11)
時鐘
system_clock
(C++11)
steady_clock
(C++11)
is_clock
(C++20)
utc_clock
(C++20)
tai_clock
(C++20)
high_resolution_clock
(C++11)
gps_clock
(C++20)
file_clock
(C++20)
local_t
(C++20)
日間時間
is_am
is_pm
(C++20)
(C++20)
make12
make24
(C++20)
(C++20)
hh_mm_ss
(C++20)
日曆
day
(C++20)
month
(C++20)
year
(C++20)
weekday
(C++20)
operator/
(C++20)
year_month_day
(C++20)
year_month_day_last
(C++20)
year_month_weekday
(C++20)
year_month_weekday_last
(C++20)
weekday_indexed
(C++20)
weekday_last
(C++20)
month_day
(C++20)
month_day_last
(C++20)
month_weekday
(C++20)
month_weekday_last
(C++20)
year_month
(C++20)
last_spec
last
(C++20)
(C++20)
chrono
I/O
parse
(C++20)
時區
tzdb
(C++20)
tzdb_list
(C++20)
get_tzdb
get_tzdb_list
reload_tzdb
remote_version
(C++20)
(C++20)
(C++20)
(C++20)
sys_info
(C++20)
local_info
(C++20)
nonexistent_local_time
(C++20)
ambiguous_local_time
(C++20)
locate_zone
(C++20)
current_zone
(C++20)
time_zone
(C++20)
choose
(C++20)
zoned_traits
(C++20)
zoned_time
(C++20)
time_zone_link
(C++20)
leap_second
(C++20)
leap_second_info
(C++20)
get_leap_second_info
(C++20)
C風格日期和時間
[編輯]
C 風格日期和時間工具
函式
時間操作
difftime
time
clock
timespec_get
(C++17)
格式轉換
asctime
ctime
strftime
wcsftime
gmtime
localtime
mktime
常量
CLOCKS_PER_SEC
型別
tm
time_t
clock_t
timespec
(C++17)
[編輯]
定義於標頭檔案
<ctime>
typedef
/* unspecified */
clock_t
;
能夠表示實現定義的範圍和精度的程序執行時間的算術型別。
[
編輯
]
參閱
clock
返回程式啟動以來原始處理器時鐘時間
(函式)
[編輯]
CLOCKS_PER_SEC
每秒的處理器時鐘節拍數
(宏常量)
[編輯]
C 文件
為
clock_t