projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
[gnulib.git]
/
lib
/
gettime.c
diff --git
a/lib/gettime.c
b/lib/gettime.c
index
0f94297
..
d60711b
100644
(file)
--- a/
lib/gettime.c
+++ b/
lib/gettime.c
@@
-45,8
+45,14
@@
gettime (struct timespec *ts)
ts->tv_nsec = tv.tv_usec * 1000;
}
# else
ts->tv_nsec = tv.tv_usec * 1000;
}
# else
+
+# ifndef OK_TO_USE_1S_CLOCK
+# error "Only 1-second nominal clock resolution found. Is that intended?" \
+ "If so, compile with the -DOK_TO_USE_1S_CLOCK option."
+# endif
ts->tv_sec = time (NULL);
ts->tv_nsec = 0;
ts->tv_sec = time (NULL);
ts->tv_nsec = 0;
+
# endif
#endif
# endif
#endif