Documentation ¶ Index ¶ type Collector func NewDurationCollector(capacity int) *Collector func (d *Collector) Durations() []time.Duration func (d *Collector) Start() func (d *Collector) Stop() type Timer func (s *Timer) Elapsed() time.Duration func (s *Timer) Start() func (s *Timer) Stop() Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Collector ¶ type Collector struct { // contains filtered or unexported fields } func NewDurationCollector ¶ func NewDurationCollector(capacity int) *Collector func (*Collector) Durations ¶ func (d *Collector) Durations() []time.Duration func (*Collector) Start ¶ func (d *Collector) Start() func (*Collector) Stop ¶ func (d *Collector) Stop() type Timer ¶ type Timer struct { // contains filtered or unexported fields } Timer tracks the duration between invocations to Start and Stop. func (*Timer) Elapsed ¶ func (s *Timer) Elapsed() time.Duration func (*Timer) Start ¶ func (s *Timer) Start() func (*Timer) Stop ¶ func (s *Timer) Stop() Source Files ¶ View all Source files timing.go Click to show internal directories. Click to hide internal directories.