Unit mismatch when decomposing a Duration or Instant to call a <long, TimeUnit> API

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