Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
22
def
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
28
base_time = get_total_time(base_sha)
Callers
1
compare_import_time.py
File · 0.85
Calls
1
readlines
Method · 0.45
Tested by
no test coverage detected