Remove monotonic usage

The monotonic package was needed for monotonic time operations when
running under Python runtimes older than 3.3. Since we now only support
versions higher than this, this third party package requirement can now
be removed.

Change-Id: I7aa3b46a51e416f1c949538301be2365c39047ed
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
This commit is contained in:
Sean McGinnis 2020-05-04 17:30:01 -05:00
parent a91e6b9e67
commit f511ca0b92
No known key found for this signature in database
GPG Key ID: CE7EE4BFAF8D70C8

View File

@ -29,11 +29,6 @@ import six
from oslo_utils import reflection
if hasattr(time, 'monotonic'):
now = time.monotonic
else:
from monotonic import monotonic as now # noqa
# ISO 8601 extended time format with microseconds
_ISO8601_TIME_FORMAT_SUBSECOND = '%Y-%m-%dT%H:%M:%S.%f'
_ISO8601_TIME_FORMAT = '%Y-%m-%dT%H:%M:%S'
@ -41,6 +36,8 @@ PERFECT_TIME_FORMAT = _ISO8601_TIME_FORMAT_SUBSECOND
_MAX_DATETIME_SEC = 59
now = time.monotonic
@removals.remove(
message="use datetime.datetime.isoformat()",