To measure how long a block of code runs, use the ABAP statement:
GET TIME
SET TIME FIELD
GET RUN TIME FIELD
SET CURSOR FIELD