Exemple #1
0
func (s *stopWatch) Reset() *stopWatch {
	s.isRunning = false
	s.startTime = timeunit.ZeroTime()
	s.elapsedTime = time.Duration(0)
	s.l = make(laps)
	return s
}
Exemple #2
0
func New() *stopWatch {
	return newStopWatch(timeunit.ZeroTime(), false, 0)
}