SecondsLeft()
ts
function SecondsLeft(): number;
This function returns the number of seconds left in the execution loop for the current script; this is a floating point value indicating the number of seconds and fractions of second left.
Example
ts
{
// let's hypothesize we have roughly just about 29 and a half seconds left to run this script
var sleft = SecondsLeft();
Log(sleft); // will log (for example): 29.56437
}