From 58904b7d9b781c9a7eb18183392b3a565fdbcd51 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Sat, 8 Jul 2023 23:26:39 +0200 Subject: Removed public folder --- public/easy-time-took-in-bash.html | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100755 public/easy-time-took-in-bash.html (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 deleted file mode 100755 index e46ab6c..0000000 --- a/public/easy-time-took-in-bash.html +++ /dev/null @@ -1,23 +0,0 @@ -Easy measure time took in a bash script

Easy measure time took in a bash script

May 28, 2023

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
-
-# Reset the timer to zero.
-SECONDS=0
-
-# Do something.
-sleep 5
-
-# Print the time elapsed.
-echo "Time taken: $SECONDS seconds"
-
\ No newline at end of file -- cgit v1.2.3