diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2014-11-29 12:54:59 -0500 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2014-12-01 19:50:52 -0500 |
commit | 94708f6d9bd9347f0cbb485f61d2f74215b62fd4 (patch) | |
tree | 7c9fe68c9f75b6d3971007803cc89b0b269aeabd /t/TEST | |
parent | c2d21e7a640527422528893466b86d277a8dac30 (diff) | |
download | perl-94708f6d9bd9347f0cbb485f61d2f74215b62fd4.tar.gz |
Show elapsed wallclock time in t/TEST.
Diffstat (limited to 't/TEST')
-rwxr-xr-x | t/TEST | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); |