hundreds of seconds?

Tim Peters tim.peters at gmail.com
Wed Oct 11 12:24:33 EDT 2006


[eur.van.andel at gmail.com]
> ...
> G5-fiwihex:~ eur$ python
> Python 2.3.5 (#1, Mar 20 2005, 20:38:20)
> [GCC 3.3 20030304 (Apple Computer, Inc. build 1809)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import time
> >>> time.time()
> 1160580871.258379
> >>>
>
> My G5 has lots of digits behind the decimal point, my measuring PC runs
> W98. We'll see how it does there. But I trust it to be enough digits.

On Windows 98, time.time() typically updates only once per 0.055
seconds (18.2 Hz), but time.clock() typically updates more than a
million times per second.  You do /not/ want to use time.time() for
sub-second time measurement on Windows.  Use time.clock() for this
purpose on Windows.



More information about the Python-list mailing list