This commit is contained in:
Kovid Goyal 2015-06-17 11:38:23 +05:30
parent eb6b2dcf2c
commit 6f237479e5

View File

@ -35,7 +35,7 @@ except ImportError:
def monotonic():
perf_counter = ctypes.c_uint64()
if ctypes.windll.kernel32.QueryPerformanceCounter(ctypes.byref(perf_counter)) == 0:
raise RuntimeError('monotonic() failed: %s' % ctypes.FormatError())
raise ctypes.WinError()
return perf_counter.value / perf_frequency
elif sys.platform == 'darwin':