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.1.tar.gz (7.1 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.1-py2.py3-none-any.whl (5.4 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for monotonic-1.1.tar.gz
Algorithm Hash digest
SHA256 255c31929e1a01acac4ca709f95bd6d319d6112db3ba170d1fe945a6befe6942
MD5 8271b79de174dc3ef00535caef38be85
BLAKE2b-256 3f3b7ee821b1314fbf35e6f5d50fce1b853764661a7f59e2da1cb58d33c3fdd9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for monotonic-1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7daa3829319bb33daa7c7e28936c79469ee349bb2e205028a4cac99a8dd655bc
MD5 30a3be23b8e51a3a9b1fee92324f0c7a
BLAKE2b-256 02549f0fbef2a2650c4e5de08fb72fb9c2bffa0eb55666246918b94deff2be85

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