| 1 |
.\" Copyright (c) 2020-2022 by Alejandro Colomar <[email protected]> |
| 2 |
.\" and Copyright (c) 2020 by Michael Kerrisk <[email protected]> |
| 3 |
.\" |
| 4 |
.\" SPDX-License-Identifier: Linux-man-pages-copyleft |
| 5 |
.\" |
| 6 |
.\" |
| 7 |
.TH clock_t 3type 2024-05-02 "Linux man-pages 6.9.1" |
| 8 |
.SH NAME |
| 9 |
clock_t \- system time |
| 10 |
.SH LIBRARY |
| 11 |
Standard C library |
| 12 |
.RI ( libc ) |
| 13 |
.SH SYNOPSIS |
| 14 |
.nf |
| 15 |
.B #include <time.h> |
| 16 |
.P |
| 17 |
.BR typedef " /* ... */ " clock_t; |
| 18 |
.fi |
| 19 |
.SH DESCRIPTION |
| 20 |
Used for system time in clock ticks or |
| 21 |
.B CLOCKS_PER_SEC |
| 22 |
(defined in |
| 23 |
.IR <time.h> ). |
| 24 |
According to POSIX, |
| 25 |
it is an integer type or a real-floating type. |
| 26 |
.SH STANDARDS |
| 27 |
C11, POSIX.1-2008. |
| 28 |
.SH HISTORY |
| 29 |
C89, POSIX.1-2001. |
| 30 |
.SH NOTES |
| 31 |
The following headers also provide this type: |
| 32 |
.I <sys/types.h> |
| 33 |
and |
| 34 |
.IR <sys/times.h> . |
| 35 |
.SH SEE ALSO |
| 36 |
.BR times (2), |
| 37 |
.BR clock (3) |