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

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for monotonic-1.3.tar.gz
Algorithm Hash digest
SHA256 2b469e2d7dd403f7f7f79227fe5ad551ee1e76f8bb300ae935209884b93c7c1b
MD5 34351251d1a67667a25cd7673d2e44bf
BLAKE2b-256 96b33e9fa0bdf132a971571cbf0e3f0c8b38834f4f7af8ca9523794f4f5895e0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for monotonic-1.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a8c7690953546c6bc8a4f05d347718db50de1225b29f4b9f346c0c6f19bdc286
MD5 cea658988c0560bf516bfc0a58e26b93
BLAKE2b-256 1e4cf58022573cd15125bc03114913906bcb6d9bc1a4b8a170a88e0525b6cd51

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