]> granicus.if.org Git - python/commitdiff
default CLOCKS_PER_SEC to CLK_TCK if it exists
authorGuido van Rossum <guido@python.org>
Sun, 25 Feb 1996 04:50:33 +0000 (04:50 +0000)
committerGuido van Rossum <guido@python.org>
Sun, 25 Feb 1996 04:50:33 +0000 (04:50 +0000)
Modules/timemodule.c

index f631b05a647ed96cccbfd28ca1ee183e6b792df1..ee3fb8db983c5584696b6683829dd31cecd44242 100644 (file)
@@ -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)