threepenny-gui-0.9.4.0: GUI framework that uses the web browser as a display.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Graphics.UI.Threepenny.Timer

Synopsis

Synopsis

Implementation of a simple timer which runs on the server-side.

NOTE: The timer may be rather wobbly unless you compile with the -threaded option.

Documentation

timer :: UI Timer Source #

Create a new timer

interval :: Attr Timer Int Source #

Timer interval in milliseconds.

running :: Attr Timer Bool Source #

Whether the timer is running or not.

tick :: Timer -> Event () Source #

Timer event.

start :: Timer -> UI () Source #

Start the timer.

stop :: Timer -> UI () Source #

Stop the timer.