TimeRemaining

WMA link


TimeRemaining[]

Gives the number of seconds remaining until the earliest enclosing TimeConstrained will request the current computation to stop.

TimeConstrained[expr, t, failexpr]

returns failexpr if the time constraint is not met.

If TimeConstrained is called out of a TimeConstrained expression, returns Infinity:

TimeConstrained
TimeUsed