summaryrefslogtreecommitdiff
path: root/time/time.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1996-05-10 22:55:26 +0000
committerRoland McGrath <roland@gnu.org>1996-05-10 22:55:26 +0000
commitf8cac037eea3e928b0d5e0c17990b6996159eec8 (patch)
tree6a974750b859b185818d8f8b0763907f66fc8954 /time/time.h
parent7cfb2d8be3d4ee24fbba14df7176fd13e7052205 (diff)
Fri May 10 18:36:14 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
* FAQ: New file contributed by drepper. * time/Makefile (headers): Add timebits.h. * sysdeps/unix/sysv/linux/timebits.h: New file. * sysdeps/stub/timebits.h: New file. * time/time.h (CLK_TCK): Define to CLOCKS_PER_SEC. (CLOCKS_PER_SEC): Remove this macro. Instead #include <timebits.h>.
Diffstat (limited to 'time/time.h')
-rw-r--r--time/time.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/time/time.h b/time/time.h
index 5f9591419e..fda7f20387 100644
--- a/time/time.h
+++ b/time/time.h
@@ -40,11 +40,14 @@ __BEGIN_DECLS
#ifdef _TIME_H
-/* Processor clock ticks per second. */
-#define CLOCKS_PER_SEC 1 /* ??? */
+/* This defines CLOCKS_PER_SEC, which is the number of processor clock
+ ticks per second. */
+#include <timebits.h>
+
+/* This is the obsolete POSIX.1-1988 name for the same constant. */
#ifdef __USE_POSIX
-#define CLK_TCK 60 /* ??? */
+#define CLK_TCK CLOCKS_PER_SEC
#endif
#endif /* <time.h> included. */