MCPcopy Create free account
hub / github.com/ModelTC/LightX2V / _parse_timestamp

Function _parse_timestamp

scripts/disagg/extract_dynamic_latency.py:38–44  ·  view source on GitHub ↗
(raw_ts: str)

Source from the content-addressed store, hash-verified

36
37
38def _parse_timestamp(raw_ts: str):
39 for fmt in (TS_FMT, LOGURU_TS_FMT):
40 try:
41 return datetime.strptime(raw_ts, fmt)
42 except ValueError:
43 pass
44 raise ValueError(f"unsupported timestamp format: {raw_ts}")
45
46
47def parse_args() -> argparse.Namespace:

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected