From d7241346a8b64eb0e5d80119d9b4e0de245d3d41 Mon Sep 17 00:00:00 2001 From: Bel LaPointe Date: Mon, 9 Apr 2018 12:15:32 -0600 Subject: [PATCH] can reset timer --- main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index b877d30..e6d0a6e 100644 --- a/main.go +++ b/main.go @@ -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) } } }