Browse Source

Reformat output strings

master
jimi 9 years ago
parent
commit
48a949c41c
  1. 7
      main.go

7
main.go

@ -49,8 +49,11 @@ func main() {
if err != nil { if err != nil {
fmt.Printf("%s %s\n", name, err) 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())
} }
Loading…
Cancel
Save