If I were you I would take a look at the TIME command.
There is a TIME('E') flavor of the command that will return the elapsed time since a timer was started or reset. If you want to know how long an EXEC ran for this is probably the easiest way of doing it.
number of seconds is the best way. I create a rexx function some time ago to do math calculations on time using number of seconds. convert both times to seconds the substract and get the diffence. I have a function if you are interest that works like the DATE() functions but for time conversions.
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.