lib/scripts/timestart.bash
changeset 26576 fc76b7b79ba9
parent 18364 a716d3b289ed
child 29145 b1c6f4563df7
     1.1 --- a/lib/scripts/timestart.bash	Tue Apr 08 15:47:05 2008 +0200
     1.2 +++ b/lib/scripts/timestart.bash	Tue Apr 08 15:47:10 2008 +0200
     1.3 @@ -7,13 +7,10 @@
     1.4  
     1.5  TIMES_RESULT=""
     1.6  
     1.7 -#set by configure
     1.8 -AUTO_PERL=perl
     1.9 -
    1.10  function get_times () {
    1.11    local TMP="/tmp/get_times$$"
    1.12    times > "$TMP"   # No pipe here!
    1.13 -  TIMES_RESULT="$SECONDS $(echo $(cat "$TMP") | "$AUTO_PERL" -pe 's,\d+m\d+\.\d+s \d+m\d+\.\d+s (\d+)m(\d+)\.\d+s +(\d+)m(\d+)\.\d+s, $1 * 60 + $2 + $3 * 60 + $4,e')"
    1.14 +  TIMES_RESULT="$SECONDS $(echo $(cat "$TMP") | perl -pe 's,\d+m\d+\.\d+s \d+m\d+\.\d+s (\d+)m(\d+)\.\d+s +(\d+)m(\d+)\.\d+s, $1 * 60 + $2 + $3 * 60 + $4,e')"
    1.15    rm -f "$TMP"
    1.16  }
    1.17