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

Uploaded Source

Built Distributions

monotonic-1.0-py2.py3-none-any.whl (5.4 kB view details)

Uploaded Python 2 Python 3

monotonic-1.0-py2-none-any.whl (5.4 kB view details)

Uploaded Python 2

File details

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

File metadata

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

File hashes

Hashes for monotonic-1.0.tar.gz
Algorithm Hash digest
SHA256 47d7d045b3f2a08bffe683d761ef7f9131a2598db1cec7532a06720656cf719d
MD5 a692bff2c5e07dde22ad2128d818d15c
BLAKE2b-256 f0420497c9fbdafae1f1d1577e3b344fdcbadd4f013cb30b8f65436abda86057

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for monotonic-1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b563432be93274cabcead21f415c42c3a0f03f262e746d5d006cb52167c31b9f
MD5 c493430e1974bad44f96bff44e3bb596
BLAKE2b-256 aa49bbf7e4c039087626a8ebd3eb7e2c904f3e75d45c68d34613451559fd0751

See more details on using hashes here.

File details

Details for the file monotonic-1.0-py2-none-any.whl.

File metadata

File hashes

Hashes for monotonic-1.0-py2-none-any.whl
Algorithm Hash digest
SHA256 fa623d72baf1a4eb542916201d805470acebda8571fd2efd48dcc746278e485a
MD5 457391e6fe799e92a479ffa97d397352
BLAKE2b-256 a140134c874ab304bb291d97fc19f3c74e23464137734fc79cb22f3a8f8b42e2

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