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