How would I calculate how long my process took in hours in the Bash script below?
So far I have it showing minutes and seconds, but my process is taking so long that I need to account for the amount of hours its taking.
#!/bin/bash
start=$(date + "%s")
end=$(date + "%s")
runtime=$((end - start))
echo "Process took $((runtime/60)) minutes and $((runtime % 60)) seconds."