Documentation ¶ Index ¶ type Phase type Recorder func NewRecorder() *Recorder func (r *Recorder) Measure(label string, fn func() error) error func (r *Recorder) Print(printer *cprint.CPrinter, command string) func (r *Recorder) Record(label string, duration time.Duration) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Phase ¶ type Phase struct { Label string Duration time.Duration } type Recorder ¶ type Recorder struct { // contains filtered or unexported fields } func NewRecorder ¶ func NewRecorder() *Recorder func (*Recorder) Measure ¶ func (r *Recorder) Measure(label string, fn func() error) error func (*Recorder) Print ¶ func (r *Recorder) Print(printer *cprint.CPrinter, command string) func (*Recorder) Record ¶ func (r *Recorder) Record(label string, duration time.Duration) Source Files ¶ View all Source files timing.go Click to show internal directories. Click to hide internal directories.