suggest to calculate this value as double to implement the 4-time timing correctly:
double tmax = ((double)(finish2 - start1)) / 1000;