default CLOCKS_PER_SEC to CLK_TCK if it exists

This commit is contained in:
Guido van Rossum 1996-02-25 04:50:33 +00:00
parent b0824db52c
commit 1b66a4f01d
1 changed files with 4 additions and 0 deletions

View 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)