Returns, as an INT64 value, the time (in milliseconds) elapsed since the ABL 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.
ETIME ( logical )
DISPLAY ETIME.This procedure sets ETIME to 0, runs a procedure called applhelp.p, and displays the elapsed time, which, in this case, equals the time required to execute applhelp.p:
DEFINE VARIABLE a AS INT64 NO-UNDO.DO:a = ETIME(yes).RUN applhelp.p.DISPLAY ETIME.END.
![]()
ABL resets ETIME during startup, not immediately after you enter the pro command. Therefore, the time returned is only an approximation of the time elapsed since your session began.ADD-INTERVAL function, DATE function, DATE-FORMAT attribute, DATETIME function, DATETIME-TZ function, DAY function, INTERVAL function, ISO-DATE function, MONTH function, MTIME function, NOW function, TIME function, TIME-SOURCE attribute, TODAY function, WEEKDAY function, YEAR function, YEAR-OFFSET attribute
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates. |