Continued developing elapsed time function for comprun.sh