Skip to main content

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, 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

monotonic-1.4.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

monotonic-1.4-py2.py3-none-any.whl (5.3 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: monotonic-1.4.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for monotonic-1.4.tar.gz
Algorithm Hash digest
SHA256 a02611d5b518cd4051bf22d21bd0ae55b3a03f2d2993a19b6c90d9d168691f84
MD5 29302cd6b1013b3ab0d1ed78e20d22f2
BLAKE2b-256 147304da85fc1bacfa94361f00205a464b7f1ed23bfe8de3511cbff0fa2eeda7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for monotonic-1.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0bcd2b14e3b7ee7cfde796e408176ceffa01d89646f2e532964ef2aae0c9fa3e
MD5 5c5d6e2bd340c02a81880bbd286cef37
BLAKE2b-256 9fff68860dec8b90424028ca54df8b9fc8cd1c47ef58710bd5e591ec8c619243

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page