Fmlib_js.TimerOne shot timers and interval timers
val set : (unit -> unit) -> int -> timerset callback millis Start a one shot timer which runs millis milliseconds and after that executes callback ().
The function returns a timer object which can be used to stop the timer.
val clear : timer -> unitclear timer Stop the timer timer. The call has no effect if timer has already fired.
val set_interval : (unit -> unit) -> int -> intervalset_interval callback millis Start a timer which executes callback () every millis milliseconds.
The function returns an interval object which can be used to stop the timer.
val clear_interval : interval -> unitclear_interval timer Stop the interval timer timer.