Ansicht
Dokumentation

ABENCL_ABAP_RUNTIME - CL ABAP RUNTIME

ABENCL_ABAP_RUNTIME - CL ABAP RUNTIME

ABAP Short Reference   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.
SAP E-Book

System Class for Runtime Measurements

The static methods CREATE_HR_TIMER and CREATE_LR_TIMER of the class CL_ABAP_RUNTIME can be used to create objects for runtime measurements. The objects contain a method GET_RUNTIME that performs a runtime measurement in the same way as the statement GET RUN TIME.

An object created using CREATE_HR_TIMER performs a measurement with high measurement precision, and an object created using CREATE_LR_TIMER performs a measurement with a lower measurement precision.

In contrast to the statement GET RUN TIME, these objects can be used to perform different measurements with different levels of precision and parallel measurements for each internal session.

Since the execution of the method GET_RUNTIME is approximately two microseconds slower than the execution of the statement GET RUN TIME, in some circumstances this method may not be suitable for the measurement of very short periods of time.

Example

Runtime measurement with an object.






CPI1466 during Backup   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.

Length: 1376 Date: 20240423 Time: 171300     sap01-206 ( 33 ms )