SET RUN TIME CLOCK RESOLUTION

Short Reference

Syntax

SET RUN TIME CLOCK RESOLUTION {HIGH|LOW}.

Effect

This statement specifies the precision with which the GET RUN TIME statement is measured. You can only execute it in a program before the GET RUN TIME statement is executed for the first time, otherwise an uncatchable exception will occur.

When you select HIGH, the system uses the level of precision of one microsecond. If the level of precision is high, this can result in incorrect time values for multi-processors as the clocks of the individual processors are not always regularly synchronized on all platforms. The high level of precision on the following platforms always returns correct values:

To avoid incorrect time values on the other platforms, you can use LOW to specify a low precision measurement whose resolution depends on each platform.

Without the above SET RUN TIME CLOCK RESOLUTION statement, GET RUN TIME implicitly uses the high precision measurement.

Note

To execute several measurements with different levels of precision within an internal mode, the class CL_ABAP_RUNTIME has been available since Release 6.40 (see class for runtime measurements).

Exceptions

Non-Catchable Exceptions