Improved the timing test.