Debian Codegraph @

upstream/debian-unstable/man3/timeval.3type

raw
1 .\" Copyright 2020, Michael Kerrisk <[email protected]>
2 .\" Copyright, the authors of the Linux man-pages project
3 .\"
4 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
5 .\"
6 .TH timeval 3type 2026-02-08 "Linux man-pages 6.18"
7 .SH NAME
8 timeval \- time in seconds and microseconds
9 .SH LIBRARY
10 Standard C library
11 .RI ( libc )
12 .SH SYNOPSIS
13 .EX
14 .B #include <sys/time.h>
15 .P
16 .B struct timeval {
17 .BR " time_t tv_sec;" " /* Seconds */"
18 .BR " suseconds_t tv_usec;" " /* Microseconds */"
19 .B };
20 .EE
21 .SH DESCRIPTION
22 Describes times in seconds and microseconds.
23 .SH STANDARDS
24 POSIX.1-2024.
25 .SH HISTORY
26 SUSv1,
27 POSIX.1-2001.
28 .SH NOTES
29 The following headers also provide this type:
30 .IR <sys/resource.h> ,
31 .IR <sys/select.h> ,
32 and
33 .IR <utmpx.h> .
34 .SH SEE ALSO
35 .BR gettimeofday (2),
36 .BR select (2),
37 .BR utimes (2),
38 .BR adjtime (3),
39 .BR futimes (3),
40 .BR timeradd (3),
41 .BR suseconds_t (3type),
42 .BR time_t (3type),
43 .BR timespec (3type)