summaryrefslogtreecommitdiff
path: root/t/TEST
diff options
context:
space:
mode:
Diffstat (limited to 't/TEST')
-rwxr-xr-xt/TEST4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/TEST b/t/TEST
index e4aa49b6c3..4b963328f3 100755
--- a/t/TEST
+++ b/t/TEST
@@ -69,7 +69,7 @@ $ENV{EMXSHELL} = 'sh'; # For OS/2
# Roll your own File::Find!
use TestInit;
use File::Spec;
-use Time::HiRes;
+if ($show_elapsed_time) { require Time::HiRes }
my $curdir = File::Spec->curdir;
my $updir = File::Spec->updir;
@@ -263,7 +263,7 @@ EOT
my $totmax = 0;
while (my $test = shift @tests) {
- my $test_start_time = Time::HiRes::time();
+ my $test_start_time = $show_elapsed_time ? Time::HiRes::time() : 0;
if ( $::infinite{$test} && $type eq 'compile' ) {
print STDERR "$test creates infinite loop! Skipping.\n";