You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
266 B
19 lines
266 B
3 days ago
|
package main
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"time"
|
||
|
"flag"
|
||
|
)
|
||
|
|
||
|
func main() {
|
||
|
|
||
|
count := flag.Int("count", 10, "Seconds to wait")
|
||
|
id := flag.Int("id", 1, "Tester ID to use.")
|
||
|
|
||
|
for i := 0; i < *count; i++ {
|
||
|
time.Sleep(1 * time.Second)
|
||
|
fmt.Println("TICK", *id)
|
||
|
}
|
||
|
}
|