test.py
import time
start=time.time()
#En traitement
stop=time.time()
diff=stop-start
print diff * 10000
test.py
import time
starttime = time.clock()
(Calcul 1)
time1 = time.clock()
(Calcul 2)
time2 = time.clock()
(Calcul 3)
time3 = time.clock()
print time1-starttime,time2-time1,time3-time2
Recommended Posts