(original) (raw)
On Sun, Apr 15, 2012 at 6:18 PM, Victor Stinner <victor.stinner@gmail.com> wrote:
> Here is a simplified version of the first draft of the PEP 418\. TheFYI there is no time.thread\_time() function. It would only be
> full version can be read online.
> http://www.python.org/dev/peps/pep-0418/
available on Windows and Linux. It does not use seconds but CPU
cycles. No module or program of the Python source code need such
function,
Just FYI: in MACOSx, you can use thread\_info() to get that information. Also you can get that information in Solaris,too. In yappi profiler I use all of these approaches together to have an OS independent thread\_times() functionality. Here is the relevant code:http://bitbucket.org/sumerc/yappi/src/7c7dc11e8728/timing.c
I also think that you are right about Python really not have any use case for this functionality, ...
Sümer Cip