import time t = time.time() m = time.monotonic() import unicodedata m = time.monotonic() - m t = time.time() - t print('%0.6f %0.6f' % (m, t))