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