#!/usr/bin/perl # # time - report the time running a sub-process use Benchmark; $t0 = new Benchmark; $rc = system(@ARGV); $t1 = new Benchmark; $td = timediff($t1,$t0); ($real, $child_user, $child_system) = @$td[0,3,4]; # I'm pretty sure this is POSIX format printf STDERR "\nreal %.2f\nuser %.2f\nsys %.2f\n", $real, $child_user, $child_system; $rc &= 0xffff; if ($rc == 0xff00) { exit 127; } else { exit ($rc >> 8); } __END__ =pod =head1 NAME time - times the execution of a command =head1 SYNOPSIS time command [argument ...] =head1 DESCRIPTION The B