Question on periods in strings

Bruno Desthuilliers bruno.42.desthuilliers at websiteburo.invalid
Thu Mar 12 11:36:24 CET 2009


Philip Bloom a écrit :
(snip)
> from datetime import datetime
> startTime = datetime.now()
(snip)
> print (datetime.now() - startTime)

A bit OT, but you may want to use timeit.Timer for this kind of 
microbenchmarks.

(snip)



More information about the Python-list mailing list