| Functions | ||||
| Time manipulation | ||||
(C11) | ||||
(C23) | ||||
| Format conversions | ||||
(deprecated in C23)(C11) | ||||
(deprecated in C23)(C11) | ||||
(C95) | ||||
(C23)(C11) | ||||
(C23)(C11) | ||||
| Constants | ||||
CLOCKS_PER_SEC | ||||
| Types | ||||
(C11) |
Defined in header <time.h> | ||
#define CLOCKS_PER_SEC /* implementation-defined */ | ||
Expands to an expression (not necessarily a compile-time constant) of typeclock_t equal to the number of clock ticks per second, as returned byclock().
POSIX definesCLOCKS_PER_SEC as1'000'000, regardless of the actual precision ofclock.
Until standardized asCLOCKS_PER_SEC in C89, this macro was sometimes known by its IEEE std 1003.1-1988 nameCLK_TCK: that name was not included in C89 and was removed from POSIX itself in 1996 over ambiguity with_SC_CLK_TCK, which gives number of clocks per second for the functiontimes).
| returns raw processor clock time since the program is started (function)[edit] | |
| processor time since era type (typedef)[edit] | |
C++ documentation forCLOCKS_PER_SEC | |