milliseconds spec fix

Make the test more tolerant of small timing deviations.