function time { echo "$(date +%N)/10000000" } function dTime { echo "($1/100).(${$1:${#1}-3:${#1}-1})" } T=$time sleep 2 T=$dTime T
printf "%0.2f\n" $T