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