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.5.tar.gz (7.5 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.5-py2.py3-none-any.whl (5.3 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for monotonic-1.5.tar.gz
Algorithm Hash digest
SHA256 23953d55076df038541e648a53676fb24980f7a1be290cdda21300b3bc21dfb0
MD5 9f81cb0e5966479754453dea2b6822f4
BLAKE2b-256 19c127f722aaaaf98786a1b338b78cf60960d9fe4849825b071f4e300da29589

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for monotonic-1.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 552a91f381532e33cbd07c6a2655a21908088962bb8fa7239ecbcc6ad1140cc7
MD5 c974f0115b53c7b00f65d5f2668baffc
BLAKE2b-256 acaa063eca6a416f397bd99552c534c6d11d57f58f2e94c14780f3bbf818c4cf

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