Retrieve wall-time in Python using the standard library?

我的梦境 提交于 2019-12-05 04:31:30

Victor Stinner wrote a Python implementation of a monotonic timer. See http://bugs.python.org/issue10278 for the discussion and the docs for the upcoming 3.3 release referencing the new feature (coded in C).

There is also Monoclock:

Monoclock is a Python module that provides access to the monotonic clock on POSIX-like OSes that have librt.

Compatibility: tested on CPython 2.6.5, CPython 2.7, pypy 1.3, and pypy 1.4.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!