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:
4
nodes.py
4
nodes.py
@@ -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:")
|
||||
|
Reference in New Issue
Block a user