Print average time for threads