You can assign the value of $LTIME to a long variable before the script operation(s), then subtract that value from the current value of $LTIME to find the elapsed number of seconds. Something like this:
lStartTime = $LTIME
<your operations go here>
lStartTime = $LTIME - lStartTime will contain the number of seconds it took for the job to complete.
What kind of average are you trying to compute? For each run through the loop?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.