Kbase P24482: How to get the execution time of a 4GL part of code or since
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  28/10/2003 |
|
Status: Verified
GOAL:
How to get the execution time of a 4GL part of code?
GOAL:
How to get the time elapsed since the Progress session began?
GOAL:
How to get the time elapsed for running a specific 4GL piece of code?
FIX:
Use ETIME function that returns the time (in milliseconds) elapsed since the Progress session began or since ETIME (elapsed time) was last set to 0. To set ETIME to 0, pass it a positive logical value, such as YES or TRUE.
For example by using the following:
DEFINE VARIABLE a AS INTEGER.
DO:
a = ETIME(yes).
/*my code start*/
...
/*my code end*/
DISPLAY ETIME.
END.
You evaluate the time to execute <my code>.