EADST

Python: Count the Running Time

Count the code running time with the following Python lines.

import time

start = time.time()

# code start here
#
# code end here

end = time.time()
run_time = round(end-start, 2)
print(run_time)
       
      
相关标签
About Me
XD
Goals determine what you are going to be.
Category
标签云
站点统计

本站现有博文242篇,共被浏览288316

本站已经建立1774天!

热门文章
文章归档
回到顶部