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_timeLine 1Line 2..Line Nstop_measuring_timeshow_elapsed_timeI would like the displayed time to be human readable (secs, min, hours, days, etc.), if possible. Any ideas how to do this? 
Measuring time within a script
shell script;time
You can use date util:#!/bin/bashstart_measuring_time() {  read s1 s2 < <(date +'%s %N')}stop_measuring_time() {  read e1 e2 < <(date +'%s %N')}show_elapsed_time() {  echo $((e1-s1)) seconds, $((e2-s2)) nanoseconds}start_measuring_timesleep 2stop_measuring_timeshow_elapsed_time