monotonic

An implementation of time.monotonic() for Python 2 & < 3.3

Apache 13 个版本
Ori Livneh <ori@wikimedia.org>
安装
pip install monotonic
poetry add monotonic
pipenv install monotonic
conda install monotonic
描述

monotonic


This module provides a ``monotonic()`` function which returns the
value (in fractional seconds) of a clock which never goes backwards.

On Python 3.3 or newer, ``monotonic`` will be an alias of
``time.monotonic`` from the standard library. On older versions,
it will fall back to an equivalent implementation:

+------------------+----------------------------------------+
| Linux, BSD, AIX  | ``clock_gettime(3)``                   |
+------------------+----------------------------------------+
| Windows          | ``GetTickCount`` or ``GetTickCount64`` |
+------------------+----------------------------------------+
| OS X             | ``mach_absolute_time``                 |
+------------------+----------------------------------------+

If no suitable implementation exists for the current platform,
attempting to import this module (or to import from it) will
cause a ``RuntimeError`` exception to be raised.



版本列表
1.6 2021-04-09
1.5 2018-05-03
1.4 2017-10-30
1.3 2017-03-14
1.2 2016-08-03
1.1 2016-04-25
1.0 2016-03-04
0.6 2016-01-24
0.5 2015-12-27
0.4 2015-10-05
0.3 2015-07-29
0.2 2015-06-19
0.1 2014-11-29