Skip to content

Latest commit

 

History

History
29 lines (16 loc) · 1.38 KB

TPJCustomConsoleApp-TimeToLive.md

File metadata and controls

29 lines (16 loc) · 1.38 KB

TimeToLive property

Project: Console Application Runner Classes

Unit: PJConsoleApp

Classes: TPJCustomConsoleApp, TPJConsoleApp

Applies to: ~>3.0

property TimeToLive: LongWord;

Description

This read only property indicates the amount of time, in milliseconds, a console application has left to run before it times out.

The property is initialised to the value of the MaxExecTime property when the application starts and is decremented at the end of each time slice. When the application has completed the value is set to 0.

Remarks

It is only meaningful to examine the value of TimeToLive in the OnStart, OnWork and OnComplete event handlers.

If MaxExecTime is INFINITE then TimeToLive will always be INFINITE while the application is executing.

If TimeSlice is INFINITE then TimeToLive will always have the same value as MaxExecTime until the application completes.

The property is public in TPJConsoleApp and protected in TPJCustomConsoleApp.