MCPcopy Create free account
hub / github.com/pytorch/pytorch / print_time

Function print_time

tools/code_coverage/package/util/utils.py:28–33  ·  view source on GitHub ↗
(message: str, start_time: float, summary_time: bool = False)

Source from the content-addressed store, hash-verified

26
27
28def print_time(message: str, start_time: float, summary_time: bool = False) -> None:
29 with open(os.path.join(LOG_DIR, "log.txt"), "a+") as log_file:
30 end_time = time.time()
31 print(message, convert_time(end_time - start_time), file=log_file)
32 if summary_time:
33 print("\n", file=log_file)
34
35
36def print_log(*args: Any) -> None:

Callers 8

report_coverageFunction · 0.90
clang_runFunction · 0.85
gcc_runFunction · 0.85
summarize_jsonsFunction · 0.85
mergeFunction · 0.85
exportFunction · 0.85
run_targetFunction · 0.85
exportFunction · 0.85

Calls 2

convert_timeFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…