summaryrefslogtreecommitdiff
path: root/doc/posix-functions/time.texi
blob: c744c63974a675cc32dbca56dff480b4077d846c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
@node time
@section @code{time}
@findex time

POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9699919799/functions/time.html}

Gnulib module: time

Portability problems fixed by Gnulib:
@itemize
@item
This function is not consistent with @code{gettimeofday} and @code{timespec_get}
on some platforms:
@c https://sourceware.org/bugzilla/show_bug.cgi?id=30200
glibc 2.31 or newer on Linux, AIX 7.2, native Windows.
Namely, in the first 1 to 2.5 milliseconds of every second (or, on AIX and
Windows, in the first 5 milliseconds of every second), @code{time} returns
a value that is one less than the @code{tv_sec} part of the return value of
@code{gettimeofday} or @code{timespec_get}.
@end itemize

Portability problems not fixed by Gnulib:
@itemize
@end itemize