ETIME function

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.

Syntax

ETIME [ ( logical ) ]
logical
A logical value, such as YES or TRUE. The default value is NO.

Examples

This procedure displays the time that elapsed since you began your ABL session:

r-etime.p

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:

r-etime2.p

DEFINE VARIABLE a AS INT64 NO-UNDO.

DO:
  a = ETIME(yes).
  RUN applhelp.p.
  DISPLAY ETIME.
END.

Notes

See also

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