MCPcopy Create free account
hub / github.com/mongodb/mongo-python-driver / get_total_time

Function get_total_time

tools/compare_import_time.py:22–25  ·  view source on GitHub ↗
(sha: str)

Source from the content-addressed store, hash-verified

20
21
22def get_total_time(sha: str) -> int:
23 with open(f"pymongo-{sha}.log") as fid:
24 last_line = fid.readlines()[-1]
25 return int(last_line.split()[4])
26
27
28base_time = get_total_time(base_sha)

Callers 1

Calls 1

readlinesMethod · 0.45

Tested by

no test coverage detected