An implementation of time.monotonic() for Python 2 & < 3.3
Project description
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 |
clock_gettime(3) |
Windows |
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file monotonic-0.1.tar.gz
.
File metadata
- Download URL: monotonic-0.1.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c97010206240da4f76e05f2c2916648ac4cc649f11627f37fc4d3b919777e145 |
|
MD5 | f8ab3fa2c8e0eb856a1f9864864b028a |
|
BLAKE2b-256 | 7b29277759abfb5b7a5a9e5e20712ed10428f890e2365327dcb56df4ceb67a0d |