MCPcopy Index your code
hub / github.com/python/mypy / time_spent_us

Function time_spent_us

mypy/util.py:916–917  ·  view source on GitHub ↗
(t0: int)

Source from the content-addressed store, hash-verified

914
915
916def time_spent_us(t0: int) -> int:
917 return int((time.perf_counter_ns() - t0) / 1000)
918
919
920def plural_s(s: int | Sized) -> str:

Callers 6

get_sourceMethod · 0.90
parse_file_innerMethod · 0.90
type_check_first_passMethod · 0.90
finish_passesMethod · 0.90

Calls 1

intClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…