📜  记录运行python代码示例的时间ittales

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

代码示例1
from time import time

start = time()
#code here
print(f'Time taken to run: {time() - start} seconds'