add time measure for kmeans