duration.getNano() only accesses the underlying nanosecond adjustment from the whole second.

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