ElapsedTime Property (AProgram)

Returns the time in seconds that the program has been running.

Syntax

 [ dElapsedTime = ] Object.ElapsedTime

The ElapsedTime property syntax has the following parts:

 

Name

Type

Description

Object

AProgram

AProgram object

dElapsedTime

Double

An integer specifying the time in seconds that the program has been running. The default value is 0.

Example

The following statement shows how to tell if the program has been running for over an hour:

if Program.ElapsedTime > 3600 then print "Test program has been running for over an hour."

Applies to

AProgram

See Also

EndTime, StartTime