DESCRIPTION.rst 944 B

12345678910111213141516171819202122232425
  1. monotonic
  2. ~~~~~~~~~
  3. This module provides a ``monotonic()`` function which returns the
  4. value (in fractional seconds) of a clock which never goes backwards.
  5. On Python 3.3 or newer, ``monotonic`` will be an alias of
  6. ``time.monotonic`` from the standard library. On older versions,
  7. it will fall back to an equivalent implementation:
  8. +------------------+----------------------------------------+
  9. | Linux, BSD, AIX | ``clock_gettime(3)`` |
  10. +------------------+----------------------------------------+
  11. | Windows | ``GetTickCount`` or ``GetTickCount64`` |
  12. +------------------+----------------------------------------+
  13. | OS X | ``mach_absolute_time`` |
  14. +------------------+----------------------------------------+
  15. If no suitable implementation exists for the current platform,
  16. attempting to import this module (or to import from it) will
  17. cause a ``RuntimeError`` exception to be raised.