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[64]

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

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for monotonic-0.6.tar.gz
Algorithm Hash digest
SHA256 2bc780a16024427cb4bfbfff77ed328484cf6937a787cc50055b83b13b653e74
MD5 2f77ba5a56051b0442b1c74fd05dafb5
BLAKE2b-256 71bedf50d24c036ff1f316f835db207c1934250f1b82b53d4ea1a14068052293

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