Versions in this module Expand all Collapse all v0 v0.1.1 Apr 15, 2019 Changes in this version + var NowFunc = time.Now v0.1.0 Apr 12, 2019 Changes in this version + type Stopwatch struct + func NewStartedStopwatch() *Stopwatch + func NewStoppedStopwatch() *Stopwatch + func (sw *Stopwatch) CurrentSegmentDuration() time.Duration + func (sw *Stopwatch) IsRunning() bool + func (sw *Stopwatch) IsStopped() bool + func (sw *Stopwatch) MakeSplit() (lapTime, totalTime time.Duration) + func (sw *Stopwatch) ReadingTime() time.Time + func (sw *Stopwatch) Reset() + func (sw *Stopwatch) Restart() + func (sw *Stopwatch) Resume() + func (sw *Stopwatch) StartTime() time.Time + func (sw *Stopwatch) Stop() time.Duration + func (sw *Stopwatch) StopTime() time.Time + func (sw *Stopwatch) TakeLapTime() time.Duration + func (sw *Stopwatch) TotalTime() time.Duration