photoprism/internal/util/time.go
Michael Mayer 2b6b1b9f79 API: Improve logging
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2019-12-03 12:51:23 +01:00

10 lines
153 B
Go

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