| @node time | |
| @subsection @code{time} | |
| @findex time | |
| POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9799919799/functions/time.html} | |
| Gnulib module: time | |
| @mindex 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/PR30200 | |
| 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 |