1
0
mirror of https://github.com/gryf/ebook-converter.git synced 2026-01-02 16:54:12 +01:00
Files
ebook-converter/ebook_converter/utils/monotonic.py
2020-04-19 15:16:48 +02:00

14 lines
417 B
Python

# vim:fileencoding=utf-8
from __future__ import absolute_import, division, print_function, unicode_literals
try:
from time import monotonic
except ImportError:
from ebook_converter.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