summaryrefslogtreecommitdiffstats
path: root/selftest
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-09-13 23:07:41 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-09-14 10:54:27 +0200
commit9f3a43c0182b8b13b2f4ff615b5aca816f4f05b3 (patch)
treeca1bfadc5adffba64db0f904ff36a6012a02dde7 /selftest
parentd67eeafc4de2bd5a90b7865a2910b03d6c5c1fca (diff)
downloadsamba-9f3a43c0182b8b13b2f4ff615b5aca816f4f05b3.tar.gz
samba-9f3a43c0182b8b13b2f4ff615b5aca816f4f05b3.tar.xz
samba-9f3a43c0182b8b13b2f4ff615b5aca816f4f05b3.zip
selftest: Report times in milliseconds rather than seconds.
Diffstat (limited to 'selftest')
-rw-r--r--selftest/Subunit.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/selftest/Subunit.pm b/selftest/Subunit.pm
index 7a352bd71b0..a3a2113e4eb 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) = @_;