From e7a16c663a5c00ccfac238694eb209c19d8e28d2 Mon Sep 17 00:00:00 2001 From: tijl Date: Fri, 27 Sep 2024 17:56:15 +0200 Subject: [PATCH] updates --- README.md | 2 +- main.go | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d48aa11..856a90f 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -`go install git.tijl.dev/tijl/stopwatch` +`go install git.tijl.dev/tijl/stopwatch@latest` diff --git a/main.go b/main.go index 7fe9280..7fb4260 100644 --- a/main.go +++ b/main.go @@ -137,12 +137,14 @@ func timerUI(startTime time.Time) { go func() { <-stop + fmt.Printf("\n") os.Exit(0) }() for { elapsed := time.Until(startTime) if elapsed.Milliseconds() == 0 { + fmt.Printf("\n") break } fmt.Printf("\r%02dd %02dh %02dm %02ds %03dms",