func (s *stopWatch) PrintAllLap(u timeunit.TimeUnit) { for k, v := range s.l { fmt.Println("Lap", k, "time", toTimeUnit(v, u), u.Name()) } }
func (s *stopWatch) Print(u timeunit.TimeUnit) { time := s.elapsed(u) fmt.Println("Elasped Time:", time, u.Name()) }
func (s *stopWatch) PrintLap(name string, u timeunit.TimeUnit) { fmt.Println("Lap", name, "time", toTimeUnit(s.l[name], u), u.Name()) }