Easy measure time took in a bash script

note, May 28, 2023 on Mitja Felicijan's blog

In Bash, the $SECONDS variable is a special variable that automatically keeps @@ -14,21 +14,18 @@ executing. It starts counting from the moment the script begins running.


 # Print the time elapsed.
 echo "Time taken: $SECONDS seconds"
-