static Duration msToDuration(double ms) { ret Duration.ofMillis(ms); }