()
| 162 | } |
| 163 | |
| 164 | func (s *Sample) String() string { |
| 165 | rate := commaFormat(s.Rate()) |
| 166 | throughput := HumanBytes(s.Throughput(), false) |
| 167 | return fmt.Sprintf("%s msgs/sec ~ %s/sec", rate, throughput) |
| 168 | } |
| 169 | |
| 170 | // Duration that the sample was active |
| 171 | func (s *Sample) Duration() time.Duration { |