bash time code example
Example 1: bash time
date #displays date and time in terminal
Example 2: meassure time bash
#Just use the default variable SECONDS for meassuring time:
SECONDS=0
sleep 10
echo $SECONDS
date #displays date and time in terminal
#Just use the default variable SECONDS for meassuring time:
SECONDS=0
sleep 10
echo $SECONDS