MCPcopy Create free account
hub / github.com/Francis-Rings/FlashPortrait / wrapper

Function wrapper

wan/utils/utils.py:381–386  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

379
380def timer(func):
381 def wrapper(*args, **kwargs):
382 start_time = time.time()
383 result = func(*args, **kwargs)
384 end_time = time.time()
385 print(f"function {func.__name__} running for {end_time - start_time} seconds")
386 return result
387 return wrapper
388
389def timer_record(model_name=""):

Callers

nothing calls this directly

Calls 1

_write_to_excelFunction · 0.85

Tested by

no test coverage detected