func (t *Task) Do(c *benchmark.Collector) { for _, conn_task := range t.task { for _, burst_task := range conn_task { for _, tc := range burst_task { d := tc.stop.Sub(tc.start) // us(MicroSecond) uint c.Add(uint64(d) / uint64(1000)) } } } }
func (t *Task) Do(c *benchmark.Collector) { for _, conn_task := range t.task { for _, tc := range conn_task { if tc.err { // TODO: err continue } d := tc.stop.Sub(tc.start) // us(MicroSecond) uint c.Add(uint64(d) / uint64(1000)) } } }