time_t
Section: Misc. Reference Manual Pages (3type)
Updated: 2022-10-30
Index
Return to Main Contents
NAME
time_t, suseconds_t, useconds_t - integer time
LIBRARY
Standard C library
(libc)
SYNOPSIS
#include <time.h>
typedef /* ... */ time_t;
#include <sys/types.h>
typedef /* ... */ suseconds_t;
typedef /* ... */ useconds_t;
DESCRIPTION
- time_t
-
Used for time in seconds.
According to POSIX,
it is an integer type.
- suseconds_t
-
Used for time in microseconds.
It is a signed integer type
capable of storing values al least in the range
[-1,
1000000].
- useconds_t
-
Used for time in microseconds.
It is an unsigned integer type
capable of storing values al least in the range
[0,
1000000].
VERSIONS
- time_t
-
<sched.h>
defines
time_t
since POSIX.1-2008.
- suseconds_t
-
POSIX.1-2001 defined
useconds_t
in
<unistd.h>
too.
STANDARDS
time_t:
C99 and later;
POSIX.1-2001 and later.
suseconds_t,
useconds_t:
POSIX.1-2001 and later.
NOTES
On some architectures,
the width of
time_t
can be controlled with the feature test macro
_TIME_BITS.
- time_t
-
The following headers also provide
time_t:
<sched.h>,
<sys/msg.h>,
<sys/select.h>,
<sys/sem.h>,
<sys/shm.h>,
<sys/stat.h>,
<sys/time.h>,
<sys/types.h>,
and
<utime.h>.
- suseconds_t
-
The following headers also provide
suseconds_t:
<sys/select.h>
and
<sys/time.h>.
SEE ALSO
stime(2),
time(2),
ctime(3),
difftime(3),
usleep(3),
timeval(3type)
Index
- NAME
-
- LIBRARY
-
- SYNOPSIS
-
- DESCRIPTION
-
- VERSIONS
-
- STANDARDS
-
- NOTES
-
- SEE ALSO
-
This document was created by
man2html,
using the manual pages.
Time: 15:01:22 GMT, May 18, 2024