User Tools

Site Tools


Programming Reference/Librarys

Question & Answer

Q&A is closed


Time Manipulation Functions

clock Clock program
difftime return difference between two times
mktime Convert tm structure to time_t
time Get current time

Conversion Functions

asctime Convert tm structure to string
ctime Convert time_t value to string
gmtime Convert time_t to tm as UTC time
localtime Convert time_t to tm as local time
strftime Format time as string

Macro Constants (macros)

CLOCKS_PER_SECClock ticks per second
NULL Null pointer


clock_t Clock type
size_t Unsigned integral type
time_t Time type
struct tm Time structure

on the occasion of the current invasion of Russia in Ukraine

Russian Stop this War
cpp/ctime.txt · Last modified: 2024/02/16 00:48 (external edit)

Impressum Datenschutz