mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
eb6b2dcf2c
commit
6f237479e5
@ -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':
|
||||
|
Loading…
x
Reference in New Issue
Block a user