Time Elapsed
start_time=$(date +'%s')
sleep 5
end_time=$(date +'%s')
total_time="$(echo $((end_time-start_time)))"
echo "${total_time}" | awk '{printf "%dh%02dm%02ds", $1/3600, ($1/60)%60, $1%60}'
0h00m05s
start_time=$(date +'%s')
sleep 5
end_time=$(date +'%s')
total_time="$(echo $((end_time-start_time)))"
echo "${total_time}" | awk '{printf "%dh%02dm%02ds", $1/3600, ($1/60)%60, $1%60}'
0h00m05s