Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Opt ¶
type Opt func(profiling *timeProfiling)
Opt is a type for implementing functional options pattern
func WithMsgFormat ¶
WithMsgFormat specify a msg-format string such as "xxx takes %v"
type P ¶
type P interface {
// WithWriter allows putting a printer for dump the timing information
WithWriter(writer Writer) P
// WithoutWriter could clear the internal writer
WithoutWriter() P
// Duration returns the timing result of an invocation
Duration() time.Duration
}
P is a timing tool interface type
Click to show internal directories.
Click to hide internal directories.