Progress
Language Reference


ETIME Function

Interfaces
OS
SpeedScript
All
All
Yes

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.

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 Progress 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 INTEGER.

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

NOTES

SEE ALSO

TIME Function


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095