Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/t/perf/min_time.perl # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / t / perf / min_time.perl` 21 lines ยท 348 bytes Raw Blame History 1 #!/usr/bin/perl 2 3 my $minrt = 1e100; 4 my $min; 5 6 while (<>) { 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 17 if (!defined $min) { 18 die "no input found"; 19 } 20 21 print $min;