bash elapsed time code example
Example: get elapsed time bash
#Just use the default variable SECONDS for meassuring time:
SECONDS=0
sleep 10
echo $SECONDS
#Just use the default variable SECONDS for meassuring time:
SECONDS=0
sleep 10
echo $SECONDS