Hash :
adfbfffa
Author :
Date :
2024-07-20T20:02:14
doc: Sort the ISO C and POSIX Function Substitutes by header file. * doc/gnulib.texi (Function Substitutes): Add one section per header file. * doc/posix-functions/*.texi: Each of these files is now a subsection.
@node time
@subsection @code{time}
@findex time
POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9799919799/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,
@c Only seen on machines with 2 or more CPUs.
FreeBSD 14.0,
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