photoprism/internal/util/time.go

11 lines
153 B
Go
Raw Normal View History

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