[Python-checkins] r46146 - sandbox/trunk/rjsh-pybench/pybench.py
Tim Peters
tim.peters at gmail.com
Wed May 24 12:24:49 CEST 2006
[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).
More information about the Python-checkins
mailing list