From 22f5ac8fcec4dbfcc1f5033f18bc4eeca52a747d Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Tue, 31 Oct 2023 08:20:22 +0100 Subject: Made the side more retro! --- public/easy-time-took-in-bash.html | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'public/easy-time-took-in-bash.html') diff --git a/public/easy-time-took-in-bash.html b/public/easy-time-took-in-bash.html index d9316b0..cb6cb70 100755 --- a/public/easy-time-took-in-bash.html +++ b/public/easy-time-took-in-bash.html @@ -1,9 +1,12 @@ -Easy measure time took in a bash script

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 track of the number of seconds since the current shell or script started executing. It starts counting from the moment the script begins running.

#!/bin/bash
 
@@ -15,7 +18,7 @@ executing. It starts counting from the moment the script begins running.

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

Posts from blogs I follow around the net