"Szabolcs Nagy" <[EMAIL PROTECTED]> writes:

> time.time seems much better solution, but python manual sais: "not all
> systems provide time with a better precision than 1 second"
>
> Should i use time.clock or time.time to be more crossplatform?
> Is time.time ok for windows? (time()-time() != 0.0)

You should use the timeit module, which chooses the correct timer to
use for the platform it's running on, as well as working around a
number of other things that trip up people trying to benchmark code.

       <mike
-- 
Mike Meyer <[EMAIL PROTECTED]>                  http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to