round rounds nanos to the nearest microsecond.
()
| 149 | |
| 150 | // round rounds nanos to the nearest microsecond. |
| 151 | func (d Duration) round() Duration { |
| 152 | d.nanos = rounded(d.nanos) |
| 153 | return d |
| 154 | } |
| 155 | |
| 156 | // rounded returns nanos rounded to the nearest microsecond. |
| 157 | func (d Duration) rounded() int64 { |
no test coverage detected