1
0
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:
Alex Xu
2025-03-02 12:24:49 -08:00
committed by GitHub
parent e1e6d587f4
commit 1a3cd6c916

View File

@@ -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