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

Tim Peters tim.peters at gmail.com
Thu May 25 16:00:34 CEST 2006


[Tim]
>> That's exactly what Python uses for time.clock() on Windows ...
>> although I see it doesn't on Win64:
>>
>> #if defined(MS_WINDOWS) && !defined(MS_WIN64) && !defined(__BORLANDC__)
>> /* Win32 has better clock replacement
>>   XXX Win64 does not yet, but might when the platform matures. */
>> #undef HAVE_CLOCK /* We have our own version down below */
>> #endif /* MS_WINDOWS && !MS_WIN64 */
>>
>> Do you know whether Win64 still has that limitation?

[Martin]
> I'm surprised it ever did. Atleast on my IA64 W2k3 installation,
> kernel32.dll exports QueryPerformanceCounter, and I can call it
> successfully.
>
> Now, I don't know how that is implemented on that hardware, and
> I'm certain the implementation is different on IA64 than on
> AMD64. Perhaps Trent didn't use it not because it wasn't available,
> but because it had some defect?

So let's ask him :-)  Trent, do you know whether the reason you had at
the time for excluding MS_WIN64 (see above) still applies?

I'm guessing it's because you were using a very early Win64
pre-release, and the reason actually went way long ago.  I'm guessing
that because it's the best outcome ;-)


More information about the Python-checkins mailing list