Documentation
¶
Index ¶
- type PhaseTimer
- func (t *PhaseTimer) Add(name string, d time.Duration)
- func (t *PhaseTimer) Snapshot() map[string]time.Duration
- func (t *PhaseTimer) Start()
- func (t *PhaseTimer) Total() time.Duration
- func (t *PhaseTimer) Track(name string, fn func() error) error
- func (t *PhaseTimer) TrackFunc(name string, fn func())
- type Summary
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PhaseTimer ¶
type PhaseTimer struct {
// contains filtered or unexported fields
}
func NewPhaseTimer ¶
func NewPhaseTimer() *PhaseTimer
func (*PhaseTimer) Start ¶
func (t *PhaseTimer) Start()
func (*PhaseTimer) Total ¶
func (t *PhaseTimer) Total() time.Duration
func (*PhaseTimer) TrackFunc ¶
func (t *PhaseTimer) TrackFunc(name string, fn func())
Click to show internal directories.
Click to hide internal directories.