summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2005-12-13 17:51:56 +0000
committerdes <des@FreeBSD.org>2005-12-13 17:51:56 +0000
commitb09cdadf2196b79dc705801225e42d7e92d93e4c (patch)
tree36a4b9770aee4491c39427b2e68e706ddd2b0384 /tools
parente279c872b10e211440c54ef0e9fa86e257f027d2 (diff)
downloadFreeBSD-src-b09cdadf2196b79dc705801225e42d7e92d93e4c.zip
FreeBSD-src-b09cdadf2196b79dc705801225e42d7e92d93e4c.tar.gz
Print user, system and real time upon exit.
Diffstat (limited to 'tools')
-rw-r--r--tools/tools/tinderbox/tinderbox.pl13
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/tools/tinderbox/tinderbox.pl b/tools/tools/tinderbox/tinderbox.pl
index a85183d..555f914 100644
--- a/tools/tools/tinderbox/tinderbox.pl
+++ b/tools/tools/tinderbox/tinderbox.pl
@@ -70,6 +70,19 @@ my %cmds = (
);
my %kernels;
+my $starttime;
+
+BEGIN {
+ ($starttime) = POSIX::times();
+}
+
+END {
+ my ($endtime, $user, $system) = POSIX::times();
+ my $ticks = POSIX::sysconf(&POSIX::_SC_CLK_TCK);
+ printf(STDERR "TB --- %.2f user %.2f system %.2f real\n",
+ $user / $ticks, $system / $ticks, ($endtime - $starttime) / $ticks);
+}
+
sub message(@) {
my $msg = join(' ', @_);
OpenPOWER on IntegriCloud