epcim
3/3/2016 - 7:10 AM

duration

duration

SECONDS=0
# do some work
duration=$SECONDS
echo "$(($duration / 60)) minutes and $(($duration % 60)) seconds elapsed."