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:

  1. "timer1"@0 received via start

  2. 300@0 received via delay

  3. after 300 ms "timer1"@0 sent via done

  4. "timer1"@0 received via start

  5. delay set to 300 3.. "timer1"@0 received via stop

  6. "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