timerF, Tick

A fudget that outputs ticks after specific delays and/or at specific intervals

Types

timerF :: F (Maybe (Int, Int)) Tick
data Tick = Tick
  instance Eq Tick
  instance Show Tick

Description

timerF provides an interface to the timers in the runtime system.

Input

Just (interval,first) will start the timer. After first ms, the timer will alarm, then, if interval is non-zero, the timer will alarm repeatedly with that interval.

If input is Nothing, the timer will stop.

Output

A Tick is output when the timer alarms.