Piccolo is a tool that run a command periodically. It can be used both as a command line utility and a library
$ go get github.com/se77en/piccolo
$ go install piccolo.go
import github.com/se77en/piccolo/piccolo
Usage: piccolo <interval> <command>
Examples
piccolo 700ms echo hello
The time can be such as "ns", "us", "ms", "s", "m", "h".
piccolo.AddTimingFunc("test", -1, func(){fmt.Println("do something")})
piccolo.StartTiming(7 * time.Second)
MIT