summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2014-11-29 12:54:59 -0500
committerJarkko Hietaniemi <jhi@iki.fi>2014-12-01 19:50:52 -0500
commit94708f6d9bd9347f0cbb485f61d2f74215b62fd4 (patch)
tree7c9fe68c9f75b6d3971007803cc89b0b269aeabd /t
parentc2d21e7a640527422528893466b86d277a8dac30 (diff)
downloadperl-94708f6d9bd9347f0cbb485f61d2f74215b62fd4.tar.gz
Show elapsed wallclock time in t/TEST.
Diffstat (limited to 't')
-rwxr-xr-xt/TEST4
1 files changed, 4 insertions, 0 deletions
diff --git a/t/TEST b/t/TEST
index 9772490d6f..7c26372884 100755
--- a/t/TEST
+++ b/t/TEST
@@ -14,6 +14,9 @@
# In which case, we need to stop t/TEST actually running tests, as all
# t/harness needs are its subroutines.
+# Measure the elapsed wallclock time.
+my $t0 = time();
+
# If we're doing deparse tests, ignore failures for these
my $deparse_failures;
@@ -778,6 +781,7 @@ SHRDLU_5
}
}
}
+ printf "Elapsed: %d sec\n", time() - $t0;
my ($user,$sys,$cuser,$csys) = times;
my $tot = sprintf("u=%.2f s=%.2f cu=%.2f cs=%.2f scripts=%d tests=%d",
$user,$sys,$cuser,$csys,$tested_files,$totmax);