can reset timer

This commit is contained in:
Bel LaPointe
2018-04-09 12:15:32 -06:00
parent 7bc229a603
commit d7241346a8

View File

@@ -59,7 +59,7 @@ func main() {
paused := false
delim := ':'
fmt.Println("Quit with 'q', Pause with 'p'")
fmt.Println("Quit with 'q', Pause with 'p', Reset with 'r'")
go func() {
last := time.Now()
@@ -105,6 +105,9 @@ func main() {
case 'p':
paused = !paused
pause <- paused
case 'r':
cur = base
printTime(&cur, base, &delim, invert)
}
}
}