aboutsummaryrefslogtreecommitdiffstats
path: root/time.c
diff options
context:
space:
mode:
Diffstat (limited to 'time.c')
-rw-r--r--time.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/time.c b/time.c
index 6598919977..3fb535e26c 100644
--- a/time.c
+++ b/time.c
@@ -946,7 +946,11 @@ time_s_times(obj)
{
#ifdef HAVE_TIMES
#ifndef HZ
-#define HZ 60 /* Universal constant :-) */
+# ifdef CLK_TCK
+# define HZ CLK_TCK
+# else
+# define HZ 60
+# endif
#endif /* HZ */
struct tms buf;