C++中头文件<ctime>包含哪些函数
发布网友
发布时间:2022-12-15 13:55
我来回答
共1个回答
热心网友
时间:2023-09-19 05:21
C Time LibraryThis header file contains definitions of functions to get and manipulate date and time information.
FunctionsTime manipulation clockClock program (function)difftimeReturn difference between two times (function)mktimeConvert tm structure to time_t (function)timeGet current time (function)
Conversion:
asctimeConvert tm structure to string (function)ctimeConvert time_t value to string (function)gmtimeConvert time_t to tm as UTC time (function)localtimeConvert time_t to tm as local time (function)strftimeFormat time to string (function)
Macros CLOCKS_PER_SECClock ticks per second (macro)NULLNull pointer (macro)
types clock_tClock type (type )size_tUnsigned integral type (type)time_tTime type (type)struct tmTime structure (type) 请参阅:http://www.cplusplus.com/reference/clibrary/ctime/