Clock

Constructor

Clock <id> (int period)

Action

Periodiacally activates its tick child. The period is specified in milliseconds.

Predefined children

  • Spike: tick.
  • DoubleProperty: period.

Example


use core
use base

_main_
Component root {
  Clock cl (500)
  Incr inc (1)

  cl.tick -> inc
  TextPrinter log
  inc.state => log.input
}

run root
run syshook