[issue1040026] os.times() is bogus

Christian Heimes report at bugs.python.org
Sun Feb 24 16:39:24 CET 2008


Christian Heimes added the comment:

I suggest that you define "static int hz" and assign a value to the var
in INITFUNC().

#ifdef HZ
hz = HZ;
#elif defined(HAVE_SYSCONF)
hz = sysconf(_SC_CLK_TCK);
#else
hz = 60; /* It's 50Hz in Europe */
#endif

----------
nosy: +tiran

_____________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1040026>
_____________________________________


More information about the Python-bugs-list mailing list