timing mechanism added to judge performance of sorting