python 计时程序运行时间

import time

time_start=time.time()
time_end=time.time()
print('totally cost',time_end-time_start)

 

posted @ 2017-10-25 15:53  Anlovescode  阅读(96921)  评论(0编辑  收藏  举报