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

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.2.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

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

monotonic-1.2-py2.py3-none-any.whl (5.5 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for monotonic-1.2.tar.gz
Algorithm Hash digest
SHA256 c0e1ceca563ca6bb30b0fb047ee1002503ae6ad3585fc9c6af37a8f77ec274ba
MD5 d14c93aabc3d6af25ef086b032b123cf
BLAKE2b-256 08359e06c881c41962d7367e9466724beda2b1101439b149b7ff708d708890de

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for monotonic-1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 668088baea217e1e89edecd12c9a913ab4678419ad4eca378dcef1e4059a44f3
MD5 15e840c1e140fc94cc98ea8d7fe954ec
BLAKE2b-256 3bdd4a10abd8298809aa8c0cbc8defaae292812085ccae8aa14a15400a88ac62

See more details on using hashes here.

Supported by

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