Matches the nanosecond from a HasTime.
Matcher hasNanosecond(Object? matcher) => isA<HasTime>().having((t) => t.nanosecond, 'nanosecond', matcher);