Use of java.time.Duration.withNanos(int) is not allowed.

See: https://errorprone.info/bugpattern/JavaDurationWithNanos