# HG changeset patch # User Oleg Oshmyan # Date 1390092627 0 # Node ID acd70a60bc17959eeef18da6cc2775703107b119 # Parent f5847d29e838078fe6722ad242c1db1e7912f229 Finished embracing time.monotonic in Python code _unix does not use monotonic clocks yet. diff -r f5847d29e838 -r acd70a60bc17 upreckon/unix.py --- a/upreckon/unix.py Thu Oct 03 01:19:09 2013 +0300 +++ b/upreckon/unix.py Sun Jan 19 00:50:27 2014 +0000 @@ -1,4 +1,4 @@ -# Copyright (c) 2010-2011 Chortos-2 +# Copyright (c) 2010-2014 Chortos-2 from __future__ import division, with_statement @@ -9,7 +9,7 @@ import os, sys, time try: - from time import steady as clock + from time import monotonic as clock except ImportError: if sys.platform.startswith('java'): from time import clock diff -r f5847d29e838 -r acd70a60bc17 upreckon/win32.py --- a/upreckon/win32.py Thu Oct 03 01:19:09 2013 +0300 +++ b/upreckon/win32.py Sun Jan 19 00:50:27 2014 +0000 @@ -1,4 +1,4 @@ -# Copyright (c) 2010-2012 Chortos-2 +# Copyright (c) 2010-2014 Chortos-2 from __future__ import division, with_statement @@ -8,10 +8,14 @@ from ctypes import * from ctypes.wintypes import * from msvcrt import getch as pause -from time import clock import os, subprocess, sys, time try: + from time import monotonic as clock +except ImportError: + from time import clock + +try: from _winreg import * except ImportError: from winreg import *