i want to build a time elapse function inside a script to print that time every second for example the output should look like below:
finding files inside a directory time elapse HH:MM:SS
- HH is hour
- MM is minute
- SS is second
and the line time elapse etc keeps counting up 1 second on the screen without printing a new line after the script is finished executing the function stops.