Branch
Hash :
c36a0f21
Author :
Date :
2024-10-27T17:01:29
doc: Add a module index. * doc/Makefile (undocumented-modules.texi): New rule. (%.info, %.html, %.dvi, %.pdf): Depend on undocumented-modules.texi. (mostlyclean): Remove also *.m and *.tmp. (force): New rule. * doc/*.texi: Add module index entries. * doc/*/*.texi: Likewise.
@node clock_getres
@subsection @code{clock_getres}
@findex clock_getres
POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9799919799/functions/clock_getres.html}
Gnulib module: ---
Portability problems fixed by Gnulib:
@itemize
@end itemize
Portability problems not fixed by Gnulib:
@itemize
@item
This function is missing on some platforms:
Mac OS X 10.11, Minix 3.1.8, mingw, MSVC 14.
@item
On many platforms, this function returns a value other than the clock
resolution of @code{clock_gettime}, i.e., the minimum distance between
differing timestamps. For example, on AIX 7.2 it returns 10
milliseconds even though the clock resolution is 1 microsecond.
Conversely, on GNU/Linux it typically returns 1 nanosecond even
though the clock resolution may be greater.
@end itemize
@mindex gettime-res
The Gnulib module @code{gettime-res} is a partial substitute; it implements
the @code{CLOCK_REALTIME} functionality of @code{clock_getres},
and fixes the too-high resolution bug of platforms like AIX 7.2.