mirror of
https://github.com/ciromattia/kcc
synced 2025-12-15 18:56:28 +00:00
add perf_counter to makeBook (#846)
This commit is contained in:
@@ -1171,6 +1171,7 @@ def checkPre(source):
|
|||||||
|
|
||||||
|
|
||||||
def makeBook(source, qtgui=None):
|
def makeBook(source, qtgui=None):
|
||||||
|
start = perf_counter()
|
||||||
global GUI
|
global GUI
|
||||||
GUI = qtgui
|
GUI = qtgui
|
||||||
if GUI:
|
if GUI:
|
||||||
@@ -1273,6 +1274,8 @@ def makeBook(source, qtgui=None):
|
|||||||
elif os.path.isdir(source):
|
elif os.path.isdir(source):
|
||||||
rmtree(source)
|
rmtree(source)
|
||||||
|
|
||||||
|
end = perf_counter()
|
||||||
|
print(f"makeBook: {end - start} seconds")
|
||||||
return filepath
|
return filepath
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user