Term2::Components::Stopwatch
Inherits Term2::Model < Reference < Object
Constructors
new
SourceInstance methods
elapsed
Sourceelapsed=(elapsed : Time::Span)
Sourceinterval
Sourceinterval=(interval : Time::Span)
Sourcereset
Sourcerunning?
Sourcestart
Sourcestart_time
Sourcestop
Sourcetick_cmd
SourceUpdate is called when a message is received. Use it to inspect the message and, in response, update the model and/or send a command.
view
View renders the program's UI, which is just a string. The view is rendered after every Update.