On Sun, Apr 15, 2012 at 6:18 PM, Victor Stinner <victor.stin...@gmail.com>wrote:
> > Here is a simplified version of the first draft of the PEP 418. The > > full version can be read online. > > http://www.python.org/dev/peps/pep-0418/ > > FYI there is no time.thread_time() function. It would only be > 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<https://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
_______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com