mirror of https://github.com/python/cpython.git
default CLOCKS_PER_SEC to CLK_TCK if it exists
This commit is contained in:
parent
b0824db52c
commit
1b66a4f01d
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue