photoprism/internal/util/time.go

13 lines
191 B
Go
Raw Normal View History

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)
}