github.com/danfaizer/golangci-lint@v1.10.1/pkg/timeutils/track.go (about) 1 package timeutils 2 3 import ( 4 "fmt" 5 "time" 6 7 "github.com/golangci/golangci-lint/pkg/logutils" 8 ) 9 10 func Track(from time.Time, log logutils.Log, format string, args ...interface{}) { 11 log.Infof("%s took %s", fmt.Sprintf(format, args...), time.Since(from)) 12 }