开发者社区> 问答> 正文

python怎么测试运行时间

python怎么测试运行时间

展开
收起
云计算小粉 2018-05-10 20:09:59 1859 0
1 条回答
写回答
取消 提交回答
  • 阿里云ping https://ping.gaomeluo.com/aliyun/

    结束时间-开始时间

    import time
    import time
    start = time.clock()
    end = time.clock()
    print "read: %f s" % (end - start)
    read: 6.760052 s

    2019-07-17 22:19:59
    赞同 展开评论 打赏
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
From Python Scikit-Learn to Sc 立即下载
Data Pre-Processing in Python: 立即下载
双剑合璧-Python和大数据计算平台的结合 立即下载