Commit 473c95e2 authored by Weixin Deng's avatar Weixin Deng
Browse files

Adjust time format

parent 97b965a7
......@@ -206,8 +206,14 @@ func startClient(args *Args) {
for i := 0; i < args.numServers; i++ {
dstAddr := args.servers[i]
clock := clocks[i]
fmt.Printf("%s,%s,%s,%s,%d\n",
dstAddr, clock.Start, clock.End, clock.Duration, clock.Duration.Microseconds())
fmt.Printf(
"%s,%s,%s,%s,%d\n",
dstAddr,
clock.Start.Format("15:04:05.000000000"),
clock.End.Format("15:04:05.000000000"),
clock.Duration,
clock.Duration.Microseconds(),
)
}
fmt.Printf("DelayAvg: %s\n", delayAvg)
fmt.Printf("DelayTotal: %s\n", delayTotal)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment