Mode:
Duration:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package main
import (
"fmt"
"time"
)
func main() {
ticker := time.NewTicker(time.Second)
defer ticker.Stop()
count := 0
for count < 3 {
<-ticker.C
count++
fmt.Println("Time:", count, "sec")
}
}Coding works best on desktop or with an external keyboard.