This thread shows how to measure the time it takes to run a script. In my case, I am interested in measuring time between two points within a script. Here is an example of how I would like to use this:
start_measuring_time
Line 1
Line 2
..
Line N
stop_measuring_time
show_elapsed_time
I would like the displayed time to be human readable (secs, min, hours, days, etc.), if possible. Any ideas how to do this?