[issue9079] Make gettimeofday available in time module
report at bugs.python.org
Tue Jul 13 07:12:13 CEST 2010
Reid Kleckner <rnk at mit.edu> added the comment:
The patch looks good to me FWIW.
I would be interested in using this perhaps in issue8844, which involves lock timeouts. It may be true that the POSIX API uses nanoseconds, but pythreads only exposes microsecond precision.
In order to use it from the thread module, it need to get moved into Python/. My best guess at the best place to put it would be sysmodule.c, since that already wraps other system calls. Or, you know, we could live a little and make a new file for it. :)
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list