|
|
@ -49,8 +49,11 @@ func main() { |
|
|
|
if err != nil { |
|
|
|
fmt.Printf("%s %s\n", name, err) |
|
|
|
} |
|
|
|
fmt.Printf("%s %d %v\n", name, data.length, data.duration) |
|
|
|
fmt.Printf("%-10s %6.2f KB %7.2f ms\n", |
|
|
|
name, |
|
|
|
float32(data.length)/1024, |
|
|
|
float32(data.duration)/1000000) |
|
|
|
} |
|
|
|
|
|
|
|
fmt.Printf("Total time: %v\n", time.Since(start)) |
|
|
|
fmt.Printf("Total time: %.3f seconds\n", time.Since(start).Seconds()) |
|
|
|
} |