📜  检查运行时python代码示例

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

代码示例1
import timeit

code = """[4, 2, 3, 1, 5].sort()"""

execution_time = timeit.timeit(code, number=1)

print(execution_time)