Bash script: How can I measure how long the script takes to run without doing anything outside the script?
Posted on 2008-06-13
How can I achieve these two things in a bash script:
1) Measure and echo how long individual functions inside the script take to run
2) Measure and echo how long the entire script takes to run
**Note: I would like to achieve these without having to do anything outside the script if possible. I only want to have this main script. I don't want to have to keep track of a script to call this script etc.