long tsAtInsertPoint = ourTimeStamps[ourIdx]; while (tsToInsert > tsAtInsertPoint && !closeEnough(tsToInsert, tsAtInsertPoint, timeDelta)) { if (closeEnough(tsToInsert, tsAtInsertPoint, timeDelta) && !mustInsert(j + 1, valueTimeStamps, tsAtInsertPoint)) { while (endRunIdx < valueTimeStamps.length && valueTimeStamps[endRunIdx] < tsAtInsertPoint && !closeEnough(valueTimeStamps[endRunIdx], tsAtInsertPoint, timeDelta)) { endRunIdx++;