Era*_*ran 7 ipython ipython-magic jupyter-notebook
我%%time在 Jupyter-notebook 中使用来测量我的 Python 代码的运行时间。问题是它只Wall time在Windows上打印,但在Ubuntu上运行良好。
%%time
Wall time
是否也可以CPU time在Windows上获取?
CPU time
我使用的是 Windows 10,Python 3.6 Anaconda 版本。
bow*_*han 0
在windows下是不可能使用的,官方文档如下
请注意,在 Win32 下,系统时间始终报告为 0,因为无法测量它。
参考
归档时间:
7 年,5 月 前
查看次数:
1840 次
最近记录:
5 年,1 月 前