Skip to content

Commit 66ad07d

Browse files
committed
runtests.py logs elapsed time
1 parent f53af5c commit 66ad07d

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎runtests.py‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import os.path
1313
import shutil
1414
import sys
15+
import time
1516
from shutil import which
1617

1718

@@ -85,6 +86,7 @@ def parse_args():
8586

8687

8788
def main():
89+
start_time = time.perf_counter()
8890
args = parse_args()
8991

9092
path = os.path.join(TEST_DIR, 'build')
@@ -112,6 +114,10 @@ def main():
112114
print("Tested: %s Python executables" % len(tested))
113115
else:
114116
run_tests_exe(sys.executable, args.verbose, tested)
117+
print()
118+
119+
dt = time.perf_counter() - start_time
120+
print(f"Total time: {dt:.1f} seconds")
115121

116122

117123
if __name__ == "__main__":

0 commit comments

Comments
 (0)