static Duration msToDuration(double ms) { ret Duration.ofNanos(lround(msToNanos(ms))); }