MCPcopy Create free account
hub / github.com/MoonshotAI/checkpoint-engine / timer

Function timer

examples/update.py:26–30  ·  view source on GitHub ↗
(msg: str)

Source from the content-addressed store, hash-verified

24
25@contextmanager
26def timer(msg: str):
27 start = time.perf_counter()
28 yield
29 end = time.perf_counter()
30 logger.info(f"{msg} duration: {end - start:.2f} seconds")
31
32
33def check_vllm_ready(endpoint: str, inference_parallel_size: int, uds: str | None = None):

Callers 2

update_weightsFunction · 0.85
joinFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected