python程序运行时间
>>> import time
>>>start=time.clock()
#run code
>>>end=time.clock()
>>>end-start
yuanchenkai 博主文章分类:python和shell ©著作权
python程序运行时间
>>> import time
>>>start=time.clock()
#run code
>>>end=time.clock()
>>>end-start
上一篇:fileinput模块
下一篇:enumerate函数
保存文件重新编译项目就会停止运行,再重新跑项目真的很崩溃...于是了解相关的解决方案;在文章中会总结一下;
你来决定,我来开发
使用clock函数获得程序开始和结束的时间,相减就能得到程序运行的时间。clock() 是C/C+
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M