Documentation
¶
Index ¶
Constants ¶
View Source
const ( // STARTNAME is name of the time which Stopwatch start from STARTNAME = "0-Start" // ENDNAME is name of the time which Stopwatch end in ENDNAME = "(LastLap)" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Stopwatch ¶
type Stopwatch struct {
// contains filtered or unexported fields
}
Stopwatch struct record the lap name and its cost durations(millisecond)
func NewStopwatch ¶
func NewStopwatch() *Stopwatch
NewStopwatch create a Stopwatch and record time with the name of STARTNAME Return a point of own
Click to show internal directories.
Click to hide internal directories.