From 1b66a4f01d221306c78c4d6cd268cf6dd0720859 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Sun, 25 Feb 1996 04:50:33 +0000 Subject: [PATCH] default CLOCKS_PER_SEC to CLK_TCK if it exists --- Modules/timemodule.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Modules/timemodule.c b/Modules/timemodule.c index f631b05a647..ee3fb8db983 100644 --- a/Modules/timemodule.c +++ b/Modules/timemodule.c @@ -83,8 +83,12 @@ time_time(self, args) #ifdef HAVE_CLOCK #ifndef CLOCKS_PER_SEC +#ifdef CLK_TCK +#define CLOCKS_PER_SEC CLK_TCK +#else #define CLOCKS_PER_SEC 1000000 #endif +#endif static object * time_clock(self, args)