We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc8cdf8 commit 7667956Copy full SHA for 7667956
Modules/timemodule.c
@@ -62,8 +62,7 @@
62
#define SEC_TO_NS (1000 * 1000 * 1000)
63
64
65
-#ifdef HAVE_TIMES
66
-
+#if defined(HAVE_TIMES) || defined(HAVE_CLOCK)
67
static int
68
check_ticks_per_second(long tps, const char *context)
69
{
@@ -75,6 +74,9 @@ check_ticks_per_second(long tps, const char *context)
75
74
}
76
return 0;
77
+#endif /* HAVE_TIMES || HAVE_CLOCK */
78
+
79
+#ifdef HAVE_TIMES
80
81
# define ticks_per_second _PyRuntime.time.ticks_per_second
82
0 commit comments