This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gvanrossum
Recipients
Date 2004-10-04.16:34:35
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
At least on Linux, all values the tuple returned by
os.times() are bogus. The code always divides the
return value from the times() system call by HZ, but
according to the man page times(2) they are in clock
ticks. The man page adds:

NOTES
       The number of clock ticks per second can be
obtained using
              sysconf(_SC_CLK_TCK);
       In  POSIX-1996 the symbol CLK_TCK (defined in
<time.h>) is mentioned as
       obsolescent. It is obsolete now.

       [...]

       Note that clock(3) returns values of type
clock_t that are not measured
       in clock ticks but in CLOCKS_PER_SEC.

History
Date User Action Args
2008-01-20 09:57:11adminlinkissue1040026 messages
2008-01-20 09:57:11admincreate