📜  查找 python 代码的运行时间 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:19.685000             🧑  作者: Mango

代码示例1
import time
start_time = time.time()
main()
print("--- %s seconds ---" % (time.time() - start_time))