ETIME function
- Last Updated: February 11, 2026
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
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
|
- 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
|
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
|
Notes
- ETIME is accurate to at least one-sixtieth of a second, but accuracy varies among systems.
- 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.
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