Versions in this module Expand all Collapse all v1 v1.0.0 Aug 15, 2019 Changes in this version + func CallerName(skip int) timerOpt + func Log(t *Timer) + func Name(name string) func(*Timer) + func ScopeTimer(opts ...timerOpt) func() + func ScopeTimerErr(err *error) func() + func ScopeTimerOk(ok *bool) func() + func WriteEventsTable(w io.Writer) + type Event struct + Count int64 + Max time.Duration + Min time.Duration + Mu sync.RWMutex + Total time.Duration + func (e *Event) Add(t time.Duration) + func (e *Event) Init() + func (e *Event) MeanTime() time.Duration + type NamedEvent struct + Name string + type TimedLocker struct + Desc string + L sync.Locker + func (me *TimedLocker) Lock() + func (me *TimedLocker) Unlock() + type TimedRWLocker struct + RWL missinggo.RWLocker + ReadDesc string + WriteDesc string + func (me *TimedRWLocker) Lock() + func (me *TimedRWLocker) RLock() + func (me *TimedRWLocker) RUnlock() + func (me *TimedRWLocker) Unlock() + type Timer struct + func NewTimer(opts ...timerOpt) (t *Timer) + func (t *Timer) Mark(events ...string) time.Duration + func (t *Timer) MarkErr(err error) + func (t *Timer) MarkOk(ok bool) Other modules containing this package github.com/anacrolix/missinggo github.com/anacrolix/missinggo/v2