util

package
v0.0.0-...-a3d2cac Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Timer

type Timer struct {
	// contains filtered or unexported fields
}

Timer count time and update the state accordingly.

func NewTimer

func NewTimer(s *state.State, p *painter.Painter, c string) *Timer

NewTimer create a new timer using a state, a command to execute and a painter to draw the screnn

func (*Timer) Run

func (t *Timer) Run()

run launch a timer and write the counter using the writer

func (*Timer) Stop

func (t *Timer) Stop()

Stop the timer

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL