Use the GET RUN TIME FIELD statement to measure the relative runtime of program segments in microseconds. The syntax is as follows:
GET RUN TIME FIELD <f>. <f> is a variable, which should be of type I.
And in order to calculate the relative runtime of a program segment follow
GET RUN TIME FIELD F1.
Code segment for which runtime needs to be calculated.
GET RUN TIEM FIELD F2.
Difference of F2 and F1(F2-F1) gives the runtime of the code segment. This stmt is especially useful for performance tuning.
No comments:
Post a Comment