monotonic (original) (raw)

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 oftime.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.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

Filter files by name, interpreter, ABI, and platform.

If you're not sure about the file name format, learn more about wheel file names.

Copy a direct link to the current filters

File details

Details for the file monotonic-1.6.tar.gz.

File metadata

File hashes

Hashes for monotonic-1.6.tar.gz | Algorithm | Hash digest | | | ----------- | ---------------------------------------------------------------- | | | SHA256 | 3a55207bcfed53ddd5c5bae174524062935efed17792e9de2ad0205ce9ad63f7 | | | MD5 | 9fbb889cdc67cb909046e8e366c9fea1 | | | BLAKE2b-256 | eaca8e91948b782ddfbd194f323e7e7d9ba12e5877addf04fb2bf8fca38e86ac | |

See more details on using hashes here.

File details

Details for the file monotonic-1.6-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for monotonic-1.6-py2.py3-none-any.whl | Algorithm | Hash digest | | | ----------- | ---------------------------------------------------------------- | | | SHA256 | 68687e19a14f11f26d140dd5c86f3dba4bf5df58003000ed467e0e2a69bca96c | | | MD5 | 11c82f1c42fb9822db52fb4a7aa58c52 | | | BLAKE2b-256 | 9a677e8406a29b6c45be7af7740456f7f37025f0506ae2e05fb9009a53946860 | |

See more details on using hashes here.