1
mirror of https://github.com/comfyanonymous/ComfyUI.git synced 2025-08-02 23:14:49 +08:00

Return right type when none specified in upload route.

Switch time.time to time.perf_counter for custom node import times.
This commit is contained in:
comfyanonymous
2023-05-13 15:31:22 -04:00
parent db4d3a8494
commit b0505eb7ab
2 changed files with 7 additions and 6 deletions

View File

@@ -1338,9 +1338,9 @@ def load_custom_nodes():
for possible_module in possible_modules:
module_path = os.path.join(custom_node_path, possible_module)
if os.path.isfile(module_path) and os.path.splitext(module_path)[1] != ".py": continue
time_before = time.time()
time_before = time.perf_counter()
success = load_custom_node(module_path)
node_import_times.append((time.time() - time_before, module_path, success))
node_import_times.append((time.perf_counter() - time_before, module_path, success))
if len(node_import_times) > 0:
print("\nImport times for custom nodes:")