I have a command line program in Python that takes a while to finish.
(我在Python中有一个命令行程序,需要花一些时间才能完成。)
I want to know the exact time it takes to finish running. (我想知道完成跑步所需的确切时间。)
I've looked at the timeit
module, but it seems it's only for small snippets of code.
(我已经看过timeit
模块,但它似乎仅适用于一小段代码。)
I want to time the whole program. (我想安排整个节目的时间。)
ask by john2x translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…