diff options
author | des <des@FreeBSD.org> | 2005-12-13 17:51:56 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2005-12-13 17:51:56 +0000 |
commit | b09cdadf2196b79dc705801225e42d7e92d93e4c (patch) | |
tree | 36a4b9770aee4491c39427b2e68e706ddd2b0384 /tools | |
parent | e279c872b10e211440c54ef0e9fa86e257f027d2 (diff) | |
download | FreeBSD-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.pl | 13 |
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(' ', @_); |