From: Guido van Rossum Date: Sun, 25 Feb 1996 04:50:33 +0000 (+0000) Subject: default CLOCKS_PER_SEC to CLK_TCK if it exists X-Git-Tag: v1.4b1~323 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1b66a4f01d221306c78c4d6cd268cf6dd0720859;p=thirdparty%2FPython%2Fcpython.git default CLOCKS_PER_SEC to CLK_TCK if it exists --- diff --git a/Modules/timemodule.c b/Modules/timemodule.c index f631b05a647e..ee3fb8db983c 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)