photoprism/internal/util/time.go

11 lines
156 B
Go
Raw Normal View History

package util
import (
"time"
)
func ProfileTime(start time.Time, name string) {
elapsed := time.Since(start)
log.Debugf("%s took %s", name, elapsed)
}