I am using go-ping ( https://github.com/sparrc/go-ping )library of golang for unprivileged ICMP ping.
timeout := time.Second*1000 interval := time.Second cou
As of Go 1.13, you can use new Duration methods Microseconds and Milliseconds which return the duration as an integer count of their respectively named units.
Microseconds
Milliseconds
https://golang.org/doc/go1.13#time