3.8版本以前是 time.clock()
请问 python3.8版本统计cpu时间的方法是什么,谢谢
微信里点“发现”,扫一下
二维码便可将本文分享至朋友圈。
As of 3.3, time.clock() is deprecated, and it's suggested to use time.process_time() or time.perf_counter() instead.
ok,thx