Changed timing test code