ExecutionTimeout()

function ExecutionTimeout(): number;

This function returns the pre-set (by configuration) execution timeout in seconds for the script currently being run.

Please note that if you set the timeout to 0 (zero) which means that the script can run indefinitely, in order to avoid dead-loops the software will still internally force this timeout equal to 9999999 seconds (~115 days).

Example

{
  var hpri = ExecutionTimeout();
  Log(hpri); // will log (for example): 30
}