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

Function wrapper_fn

nodes.py:516–521  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected