Print the execution time of your Linux shell scripts



Print the execution time of your Linux shell scripts

Print the execution time of your Linux shell scripts

Did you ever wonder, how long did it take that script to run? Well in this 2 minute Linux quick tip we will show you how to print the time it took a script to run.

Links:
This article (formatting function code): https://www.putorius.net/time-execution-of-script.html
Countdown timer code: https://www.putorius.net/how-to-make-countdown-timer-in-bash.html

0:00 Introduction to the SECONDS Bash builtin
0:38 Using the SECONDS variable
1:21 Formating the SECONDS variable to make it human readable