void () { long limit = System.currentTimeMillis() - TIMING_TTL_MILLIS; int endIndex = 0; for (; endIndex < myTimings.size(); endIndex++) { if (myTimings.getLong(endIndex) > limit) { break; } } if (endIndex > 0) { myTimings.removeElements(0, endIndex); } }