From 7ccac3eb219ecd080fbcfd550b9d3dabbd67efba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Inf=C3=BChr?= Date: Sat, 16 Nov 2024 19:31:58 +0100 Subject: [PATCH] tester: Emit test duration --- tools/tester.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/tester.rb b/tools/tester.rb index 7110bb1c3..ef85caf00 100755 --- a/tools/tester.rb +++ b/tools/tester.rb @@ -443,6 +443,7 @@ def run_tests passed = 0 failed = 0 ignore = 0 + start_time = Time.now threads = [] @@ -545,6 +546,12 @@ def run_tests puts "#{passed}; #{failed}" end + if !$stress + end_time = Time.now + duration = end_time - start_time + puts "Ran in %.1f seconds." % duration + end + ret_success end