Alexander Belopolsky added the comment: On i386 Linux, HZ is #defined as sysconf(_SC_CLK_TCK)
/usr/include/asm-i386/param.h:7:#define HZ sysconf(_SC_CLK_TCK) so times does the right thing. On x86_64 HZ is defined as 100, but it is the same value as sysconf returns. I could not find an authoritative statement in this regard, but it appears that on modern Linuxes posix_times implementation usin HZ is correct. On the other hand, os.times would be more useful if it just returned a tuple of clock ticks. I suggest implementing os._times returning integer clock ticks in posixmodule and reimplementing os.times in os.py in terms of sysconf and _times. ---------- nosy: +belopolsky _____________________________________ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1040026> _____________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com