t / perf / min_time.perlon commit Merge branch 'bw/commit-partial-from-subdirectory-fix' (8295f20)
   1#!/usr/bin/perl
   2
   3my $minrt = 1e100;
   4my $min;
   5
   6while (<>) {
   7        # [h:]m:s.xx U.xx S.xx
   8        /^(?:(\d+):)?(\d+):(\d+(?:\.\d+)?) (\d+(?:\.\d+)?) (\d+(?:\.\d+)?)$/
   9                or die "bad input line: $_";
  10        my $rt = ((defined $1 ? $1 : 0.0)*60+$2)*60+$3;
  11        if ($rt < $minrt) {
  12                $min = $_;
  13                $minrt = $rt;
  14        }
  15}
  16
  17if (!defined $min) {
  18        die "no input found";
  19}
  20
  21print $min;