bash time difference code example
Example: get time diff 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