Query if specified timeout variable is expired: the variable can be prepared with timeoutS() or timeoutMs() functions.
Syntax |
isTimeout(timeout t): bool |
---|---|
tvar |
Source timeout variabile |
Result |
Return true if timeout expired, false otherwise. |
Usage example:
timeout t t = timeoutS(5) ; Init timeout of 5 second while (not isTimeout(t)) ; Loop while not timeout ; Do something if (...) ; Condition to wait more ... t = timeoutS(2) ; Reinit timeout of 2 second end end if (isTimeout(t)) ; Timeout error end ... |