Add timing logging to knn query tests.