EndTime Property (AProgram) |
Version 2024/v13 |
Returns the time that the program ended.
[ 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. |
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.
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