python计算代码执行时间
import time start = time.time() '''code you want to time goes here''' end = time.time() elapsed = end - start print "Time taken: ", elapsed, "seconds."
python计算代码执行时间
import time start = time.time() '''code you want to time goes here''' end = time.time() elapsed = end - start print "Time taken: ", elapsed, "seconds."