[Python-checkins] r46146 - sandbox/trunk/rjsh-pybench/pybench.py

M.-A. Lemburg mal at egenix.com
Wed May 24 13:28:37 CEST 2006


Tim Peters wrote:
> [M.-A. Lemburg]
>> It may actually be better to use the win32process API
>> GetProcessTimes() directly:
>>
>> http://aspn.activestate.com/ASPN/docs/ActivePython/2.4/pywin32/win32process__GetProcessTimes_meth.html
>>
>> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/getprocesstimes.asp
>>
>>
>> provided the win32 package is installed.
>>
>> This would be more in line with what time.clock() returns
>> on Unix platforms, namely the process time... I wonder why
>> time.clock() doesn't use this API on Windows.
> 
> GetProcessTimes() is a relatively new addition to the Win32 API.
> Doesn't exist in any version of 9X/ME.  Does exist in XP.  May or may
> not exist in Win2K (docs say it exists in Win2K Pro and Win2K Server;
> they don't claim it exists in plain Win2K).

Hmm, perhaps we should then add it as new function (and also make
the change that Thomas proposed to the time.time() function on
Windows) ?!

-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, May 24 2006)
>>> Python/Zope Consulting and Support ...        http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ...             http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ...        http://python.egenix.com/
________________________________________________________________________

::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! ::::


More information about the Python-checkins mailing list