Use ms
This commit is contained in:
parent
8713253df0
commit
0fe3ee54d3
1 changed files with 5 additions and 5 deletions
10
main.go
10
main.go
|
@ -52,7 +52,7 @@ func main() {
|
|||
log.Fatal("failed listbucket: ", err)
|
||||
return
|
||||
}
|
||||
fmt.Printf("listbuckets,%v\n", elapsed)
|
||||
fmt.Printf("listbuckets,%v\n", elapsed.Milliseconds())
|
||||
}
|
||||
|
||||
for i := 0; i < 100; i++ {
|
||||
|
@ -65,7 +65,7 @@ func main() {
|
|||
log.Fatal("failed putObject: ",err)
|
||||
return
|
||||
}
|
||||
fmt.Printf("putobject,%v\n", elapsed)
|
||||
fmt.Printf("putobject,%v\n", elapsed.Milliseconds())
|
||||
}
|
||||
|
||||
for i := 0; i < 100; i++ {
|
||||
|
@ -83,7 +83,7 @@ func main() {
|
|||
}
|
||||
}
|
||||
elapsed := time.Since(start)
|
||||
fmt.Printf("listobjects,%v\n", elapsed)
|
||||
fmt.Printf("listobjects,%v\n", elapsed.Milliseconds())
|
||||
}
|
||||
|
||||
for i := 0; i < 100; i++ {
|
||||
|
@ -99,7 +99,7 @@ func main() {
|
|||
return
|
||||
}
|
||||
elapsed := time.Since(start)
|
||||
fmt.Printf("getobject,%v\n", elapsed)
|
||||
fmt.Printf("getobject,%v\n", elapsed.Milliseconds)
|
||||
}
|
||||
|
||||
for i := 0; i < 100; i++ {
|
||||
|
@ -111,6 +111,6 @@ func main() {
|
|||
log.Fatal(err)
|
||||
return
|
||||
}
|
||||
fmt.Printf("removeobject,%v\n", elapsed)
|
||||
fmt.Printf("removeobject,%v\n", elapsed.Milliseconds())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue