An implementation of time.monotonic() for Python 2 & < 3.3
Project Links
Meta
Author: Ori Livneh
Classifiers
Development Status
- 5 - Production/Stable
License
- OSI Approved :: Apache Software License
Programming Language
- Python :: 2
- Python :: 3
Topic
- Software Development :: Libraries :: Python Modules
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
Apr 09, 2021
1.5
May 03, 2018
1.4
Oct 30, 2017
1.3
Mar 14, 2017
1.2
Aug 03, 2016
1.1
Apr 25, 2016
1.0
Mar 04, 2016
0.6
Jan 24, 2016
0.5
Dec 27, 2015
0.4
Oct 05, 2015
0.3
Jul 29, 2015
0.2
Jun 19, 2015
0.1
Nov 29, 2014
Wheel compatibility matrix
Files in release
No dependencies