doublehystStep=((double)focusMeasurementParameters.scanStep*(focusMeasurementParameters.scanNumber-1))/focusMeasurementParameters.scanHysteresisNumber;// errors will accumulate, but that's OK
if(debugLevel>0)System.out.println("Scanning focus in reverse direction for hysteresis estimation, step#"+(numStep+1)+" (of "+focusMeasurementParameters.scanHysteresisNumber+
") at "+IJ.d2s(0.000000001*(System.nanoTime()-startTime),3));