mirror of
https://github.com/ciromattia/kcc
synced 2025-12-13 01:36:27 +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):
|
||||
start = perf_counter()
|
||||
global GUI
|
||||
GUI = qtgui
|
||||
if GUI:
|
||||
@@ -1273,6 +1274,8 @@ def makeBook(source, qtgui=None):
|
||||
elif os.path.isdir(source):
|
||||
rmtree(source)
|
||||
|
||||
end = perf_counter()
|
||||
print(f"makeBook: {end - start} seconds")
|
||||
return filepath
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user