[SciPy-user] CPU-time

Francesc Alted falted at openlc.org
Wed May 28 12:36:56 EDT 2003


A Dimecres 28 Maig 2003 18:27, Kasper Souren va escriure:
> I'd say
>
> import time
> t0 = time.time()
> big_calculation()
> t1 = time.time()
> time_used = t1 - t0

time.clock() returns the CPU time instead of wall-clock time

-- 
Francesc Alted




More information about the SciPy-User mailing list