python测试程序耗时

import time

time_start = time.time()
# func()
time_end = time.time()
time_cost2 = (time_end - time_start) * 1000
print(str(time_cost2)+ "ms\n")
posted @ 2022-11-01 19:07  narjaja  阅读(78)  评论(0编辑  收藏  举报