MCPcopy Create free account
hub / github.com/PowerHouseMan/ComfyUI-AdvancedLivePortrait / logging_time

Function logging_time

nodes.py:515–523  ·  view source on GitHub ↗
(original_fn)

Source from the content-addressed store, hash-verified

513 #def apply_ratio(self, ratio): self.exp *= ratio
514
515def logging_time(original_fn):
516 def wrapper_fn(*args, **kwargs):
517 start_time = time.time()
518 result = original_fn(*args, **kwargs)
519 end_time = time.time()
520 print("WorkingTime[{}]: {} sec".format(original_fn.__name__, end_time - start_time))
521 return result
522
523 return wrapper_fn
524
525
526#exp_data_dir = os.path.join(current_directory, "exp_data")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected