func (t Session) LogIf(log zerolog.Logger, minLen time.Duration, msg string) {
	interval := time.Since(time.Time(t))
	if interval > minLen {
		log.Debug().Str("time-taken", interval.String()).Msg("profiler: " + msg)
	}
}
LogIf logs the time taken since the start of the session, if that is longer
than the given minimum duration.
package profiler
import (
	"time"
	"github.com/rs/zerolog"
)
type Session time.Time
func Start() Session {
	return Session(time.Now())
}
func (t Session) Done(log zerolog.Logger, msg string) {
	t.LogIf(log, time.Second/4, msg)
}