summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--selftest/Subunit.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/selftest/Subunit.pm b/selftest/Subunit.pm
index 7a352bd71b..a3a2113e4e 100644
--- a/selftest/Subunit.pm
+++ b/selftest/Subunit.pm
@@ -23,6 +23,13 @@ require Exporter;
use strict;
+eval {
+require Time::HiRes;
+};
+unless ($@) {
+ use Time::HiRes qw(time);
+}
+
sub parse_results($$$)
{
my ($msg_ops, $statistics, $fh) = @_;