github.com/hy3/cuto@v0.9.8-0.20160830082821-aa6652f877b7/util/proc_windows_test.go (about) 1 package util 2 3 import ( 4 "os/exec" 5 "strconv" 6 ) 7 8 func createSleepCommand(second int) *exec.Cmd { 9 second++ 10 return exec.Command("ping", "-n", strconv.Itoa(second), "localhost") 11 }