Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Stopwatch ¶
type Stopwatch struct {
// contains filtered or unexported fields
}
func NewStopwatch ¶
func NewStopwatch() *Stopwatch
NewStopwatch creates a stopwatch that simply holds starting time. The idea behind its usage is to have its String() function redirect to the function that measures elapsed time since its creation in order to plug it into defered logger calls.
Click to show internal directories.
Click to hide internal directories.