Timer
[system/Timer]
Sets a timer which triggers done
port after as many milliseconds as received or specified by delay. Timer can be canceled with ˙stop
(input).
Examples:
"timer1"@0 received via
start
300@0 received via
delay
after 300 ms "timer1"@0 sent via
done
"timer1"@0 received via
start
delay
set to 300 3.. "timer1"@0 received viastop
"timer1"@0 sent via
stopped
Keywords: timer, timeout
Input ports
start:
(string or number)
Receives the timerId which identifies the timer. Example: "timer1"
stop:
(string or number)
Receives the timerId which identifies the timer to be stopped. Example: "timer1"
delay:
number
Receives the time in milliseconds that the timer should wait before the
done
port is triggered. Example: 300
Output ports
done:
(string or number)
Sends timerId when the delayed timeout is reached. Example: "timer1"
stopped:
(string or number)
Sends timerId when the timer is stopped. Example: "timer1"
Last updated