summaryrefslogtreecommitdiffstats
path: root/Modules/timemodule.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-02-25 04:50:33 (GMT)
committerGuido van Rossum <guido@python.org>1996-02-25 04:50:33 (GMT)
commit1b66a4f01d221306c78c4d6cd268cf6dd0720859 (patch)
tree2dd089237ac1356f24ad863c26a460f886fcdc4d /Modules/timemodule.c
parentb0824db52c1805a267aea1f49e4778251ff802fe (diff)
downloadcpython-1b66a4f01d221306c78c4d6cd268cf6dd0720859.zip
cpython-1b66a4f01d221306c78c4d6cd268cf6dd0720859.tar.gz
cpython-1b66a4f01d221306c78c4d6cd268cf6dd0720859.tar.bz2
default CLOCKS_PER_SEC to CLK_TCK if it exists
Diffstat (limited to 'Modules/timemodule.c')
-rw-r--r--Modules/timemodule.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/timemodule.c b/Modules/timemodule.c
index f631b05..ee3fb8d 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)