PYTHON-1009 Switch from "Monotime" to "monotonic"

This commit is contained in:
Felix Yan 2015-11-08 13:01:29 +08:00 committed by Bernie Hackett
parent 29df784185
commit 13f86c598a
3 changed files with 10 additions and 6 deletions

View File

@ -91,7 +91,7 @@ Optional packages:
performance on Python older than 2.7.8, or on Python 3 before Python 3.4.
- `pykerberos <https://pypi.python.org/pypi/pykerberos>`_ is required for
the GSSAPI authentication mechanism.
- `Monotime <https://pypi.python.org/pypi/Monotime>`_ adds support for
- `monotonic <https://pypi.python.org/pypi/monotonic>`_ adds support for
a monotonic clock, which improves reliability in environments
where clock adjustments are frequent. Not needed in Python 3.3+.
- `wincertstore <https://pypi.python.org/pypi/wincertstore>`_ adds support

View File

@ -21,7 +21,7 @@ packages:
performance on Python older than 2.7.8, or on Python 3 before Python 3.4.
- `pykerberos <https://pypi.python.org/pypi/pykerberos>`_ is required for
the GSSAPI authentication mechanism.
- `Monotime <https://pypi.python.org/pypi/Monotime>`_ adds support for
- `monotonic <https://pypi.python.org/pypi/monotonic>`_ adds support for
a monotonic clock, which improves reliability in environments
where clock adjustments are frequent. Not needed in Python 3.3+.
- `wincertstore <https://pypi.python.org/pypi/wincertstore>`_ adds support

View File

@ -25,8 +25,12 @@ except ImportError:
pass
try:
# Monotime or Python 3.3+.
from time import monotonic as time
# From https://pypi.python.org/pypi/monotinic.
from monotonic import monotonic as time
except ImportError:
# Not monotonic.
from time import time
try:
# Monotime or Python 3.3+.
from time import monotonic as time
except ImportError:
# Not monotonic.
from time import time