diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2005-11-10 20:19:37 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2005-11-10 20:19:37 +0000 |
commit | 6512f0a46a6ced0d865faae14f0506278a39d819 (patch) | |
tree | 1cc9871b9e14b3990721bb90eb410b836eafee9a /lib/gethrxtime.h | |
parent | aacff154ea39c589ffe6dfb3c324cac4257151d8 (diff) | |
download | gnulib-6512f0a46a6ced0d865faae14f0506278a39d819.tar.gz |
* modules/gethrxtime (Depends-on): Add gettime.
* lib/gethrxtime.c: Include "timespec.h" rather than the sys/time / time
business.
(gethrxtime) [! (HAVE_NANOUPTIME
|| (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
|| HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
our own approximation.
* m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
or gettimeofday; no longer needed.
Diffstat (limited to 'lib/gethrxtime.h')
-rw-r--r-- | lib/gethrxtime.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/gethrxtime.h b/lib/gethrxtime.h index ecbd505d50..2247f968d3 100644 --- a/lib/gethrxtime.h +++ b/lib/gethrxtime.h @@ -24,8 +24,9 @@ # include "xtime.h" /* Get the current time, as a count of the number of nanoseconds since - an arbitrary epoch (e.g., the system boot time). This clock can't - be set, is always increasing, and is nearly linear. */ + an arbitrary epoch (e.g., the system boot time). Prefer a + high-resolution clock that is not subject to resetting or + drifting. */ # if HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME # include <time.h> |