unit. Every nanosecond count fits every
unit (division only shrinks), so this never overflows.
Scales a nanosecond count to unit, truncating a sub-unit remainder toward zero (explicit precision loss).
nanos | the value in nanoseconds (signed). |
unit | the unit to express it in. |
unit. Every nanosecond count fits every
unit (division only shrinks), so this never overflows.