#!/bin/sh
start_time=$(date +%s.%N)
...
end_time=$(date +%s.%N)
total_time=$(echo "($end_time - $start_time) * 1000" | bc | awk -F'.' '{print $1}')
echo "Total time taken: $total_time milliseconds"
echo 'done'
#!/bin/sh
start_time=$(date +%s.%N)
...
end_time=$(date +%s.%N)
total_time=$(echo "($end_time - $start_time) * 1000" | bc | awk -F'.' '{print $1}')
echo "Total time taken: $total_time milliseconds"
echo 'done'