nextToAdd = (int) (-diff / intervalNs + 1);
assert nextToAdd > 0;
nextInterval += intervalNs * nextToAdd;
// Update the test state appropriately
State state = testState.getState();
if (state == State.WARMUP && now >= start) {
testState.startMeasure();
start = now;
// measureEnd = measureStart + measureSeconds * 1000000000L;
} else if (state == State.MEASURE && lastEntry && now >= start + delta) {