EndTime Property (AProgram)

Version 2024/v13

 

Returns the time that the program ended.

Syntax

 [ dateEnd = ] Object.EndTime

The EndTime property syntax has the following parts:

 

Name

Type

Description

Object

AProgram

AProgram object

dateEnd

DateTime

A floating number (Double) specifying the time that the program ended.

Comments

During the program OnEndProgram events are called EndTime contains the time before these events are called. however after the program ends it will contain the time after these events called.

In ATEasy 2024/v13 this property was updated to return the time accurate to 100 nSec from 1 Sec in earlier versions.

Example

The following code fragment from the OnEnd event of the program aborts the application if the program ran past a hard deadline for completion:

if Program.EndTime > m_dtDeadline

print "*** Program "; Program.Name; " Took longer the usually  ***"

Abort

endif

Applies to

AProgram

See Also

ElapsedTime, StartTime, DataTime data type