* Converts milliseconds to seconds and nanoseconds. * @param {number} ms Milliseconds * @returns {{ sec: number, nsec: number }}
(ms)
| 44 | * @returns {{ sec: number, nsec: number }} |
| 45 | */ |
| 46 | function msToTimeSpec(ms) { |
| 47 | const sec = MathFloor(ms / 1000); |
| 48 | const nsec = (ms % 1000) * 1_000_000; |
| 49 | return { sec, nsec }; |
| 50 | } |
| 51 | |
| 52 | /** |
| 53 | * Fills the bigint stats array with the given values. |
no outgoing calls
no test coverage detected
searching dependent graphs…