MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / main

Function main

tools/python-3.11.9-amd64/Tools/scripts/startuptime.py:10–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8
9
10def main():
11 binaries = sys.argv[1:]
12 for bin in binaries:
13 t0 = time.time()
14 for _ in range(NREPS):
15 result = subprocess.run([bin, "-c", "pass"])
16 result.check_returncode()
17 t1 = time.time()
18 print(f"{(t1-t0)/NREPS:6.3f} {bin}")
19
20
21if __name__ == "__main__":

Callers 1

startuptime.pyFile · 0.70

Calls 4

check_returncodeMethod · 0.80
printFunction · 0.50
timeMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected