class

Term2::Components::Stopwatch

Inherits Term2::Model < Reference < Object

Constructors

Instance methods

elapsed
Source
elapsed=(elapsed : Time::Span)
Source
interval
Source
interval=(interval : Time::Span)
Source
reset
Source
running=(running : Bool)
Source
running?
Source
start
Source
start_time
Source
start_time=(start_time : Time)
Source
stop
Source
tick_cmd
Source
update(msg : Msg) : Tuple(Stopwatch, Cmd)

Update is called when a message is received. Use it to inspect the message and, in response, update the model and/or send a command.

Source
view

View renders the program's UI, which is just a string. The view is rendered after every Update.

Source

Nested types