My reading of the documentation says that I can use this construct:
SET RUN TIME CLOCK RESOLUTION LOW
to set the value returned by GET RUN TIME to be milliseconds. A:
SET RUN TIME CLOCK RESOLUTION HIGH
would return microseconds.
In a simple test program it doesn't seem to make any difference. The value returned by GET RUN TIME is always microseconds.
Here's the demo program:
REPORT ZPERFTEST2.
tables: TSTC.
data: s_time type i.
data: e_time type i.
data: total type i.
SET RUN TIME CLOCK RESOLUTION HIGH.
get run time field s_time.
DO 10000 times.
Waste some time..
SELECT SINGLE * FROM TSTC
WHERE PGMNA = 'SAPLC11E'.
ENDDO.
get run time field e_time.
total = e_time - s_time.
write: / s_time, ' ',
e_time, ' ',
total.
Any ideas?