blob: c1972818136501e40bf091d8e0deed89cf1175aa [file] [edit]
@node clock_gettime
@subsection @code{clock_gettime}
@findex clock_gettime
POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9799919799/functions/clock_gettime.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
This function leaves the upper 32 bits of the @code{tv_sec} field of the result
uninitialized on some platforms:
mingw in 32-bit mode.
@end itemize
@mindex gettime
@mindex timespec_get
The Gnulib modules @code{gettime} and @code{timespec_get} are partial
substitutes; they implement the @code{CLOCK_REALTIME} functionality of
@code{clock_gettime}.