[Python] python计算代码执行时间 →→→→→进入此内容的聊天室

来自 , 2019-05-01, 写在 Python, 查看 130 次.
URL http://www.code666.cn/view/9f93557d
  1. import time
  2.  
  3. start = time.time()
  4.  
  5. '''code you want to time goes here'''
  6.  
  7. end = time.time()
  8. elapsed = end - start
  9. print "Time taken: ", elapsed, "seconds."

回复 "python计算代码执行时间"

这儿你可以回复上面这条便签

captcha