Skip to main content
Help us improve Python packaging – donate today!

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.

Release history Release notifications

This version
History Node

1.4

History Node

1.3

History Node

1.2

History Node

1.1

History Node

1.0

History Node

0.6

History Node

0.5

History Node

0.4

History Node

0.3

History Node

0.2

History Node

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
monotonic-1.4-py2.py3-none-any.whl (5.3 kB) Copy SHA256 hash SHA256 Wheel 3.6 Oct 30, 2017
monotonic-1.4.tar.gz (7.5 kB) Copy SHA256 hash SHA256 Source None Oct 30, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page