1
0
mirror of https://github.com/gryf/ebook-converter.git synced 2025-12-31 14:42:27 +01:00
Files
ebook-converter/ebook_converter/utils/monotonic.py
2020-04-11 19:27:06 +02:00

14 lines
409 B
Python

# vim:fileencoding=utf-8
from __future__ import absolute_import, division, print_function, unicode_literals
try:
from time import monotonic
except ImportError:
from calibre.constants import plugins
monotonicp, err = plugins['monotonic']
if err:
raise RuntimeError('Failed to load the monotonic module with error: ' + err)
monotonic = monotonicp.monotonic
del monotonicp, err