MCPcopy Create free account
hub / github.com/CodeClash-ai/CodeClash / wrapper

Function wrapper

codeclash/viewer/app.py:39–46  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

37
38 @functools.wraps(func)
39 def wrapper(*args, **kwargs):
40 start_time = time.time()
41 logger.info(f"Starting {func.__name__}")
42 try:
43 return func(*args, **kwargs)
44 finally:
45 elapsed = time.time() - start_time
46 logger.info(f"Completed {func.__name__} in {elapsed:.2f}s")
47
48 return wrapper
49

Callers

nothing calls this directly

Calls 1

TimeoutErrorClass · 0.85

Tested by

no test coverage detected