1
0
Fork 0
cpu_ctrl/test/os.go

21 lines
277 B
Go
Raw Normal View History

2018-07-06 14:36:37 +09:00
package main
import (
"fmt"
"time"
)
func main() {
funcs := []func(){
2018-07-06 15:01:07 +09:00
a, b, c, d, e, f,
2018-07-06 14:36:37 +09:00
}
for i := 0; i < 1000; i++ {
fmt.Printf("------ %d -------\n", i)
for idx, f := range funcs {
fmt.Printf("===== %d =====\n", idx)
f()
}
time.Sleep(time.Second)
}
}