Mohan WebSite
Time difference res1=$(date +%s.%N) sleep 1 res2=$(date +%s.%N) echo “Start time: $res1” echo “Stop time: $res2” echo “Elapsed: $(echo “$res2 – $res1″|bc )” printf “Elapsed: %.3F\n” $(echo “$res2 – $res1″|bc )
Recent Comments