12 lines
191 B
Go
12 lines
191 B
Go
package util
|
|
|
|
import (
|
|
"time"
|
|
|
|
log "github.com/sirupsen/logrus"
|
|
)
|
|
|
|
func ProfileTime(start time.Time, name string) {
|
|
elapsed := time.Since(start)
|
|
log.Debugf("%s took %s", name, elapsed)
|
|
}
|