mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-25 00:02:32 -04:00
...
This commit is contained in:
@@ -31,6 +31,7 @@ def debug(*a, **kw):
|
||||
if not hasattr(debug, 'first'):
|
||||
debug.first = monotonic()
|
||||
kw['end'] = kw.get('end', '\r\n')
|
||||
kw['flush'] = True
|
||||
print(f'[{monotonic() - debug.first:.2f}]', *a, **kw)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user