triggerLength
time TPT.triggerLength()
This operation is allowed in stop and abort conditions of the
TPT.trigger()
function only.
It returns the duration since the start condition was true
for the
first time and the current time t.
Returns:
Duration since trigger start.
Examples:
c = TPT.BooleanX() c := TPT.trigger(foo==1, TPT.triggerLength()>2 and bar>4, foo>=3) # trigger starts when foo becomes 1 # trigger stops when it was 2 seconds in action and # when bar is greater than 4 # trigger is aborted and the so far valid interval is # discarded when foo is equal to or greater than 3
See Also: