private Long timeSinceLastLine(TimeUnit unit) { long now = clock.currentTimeMillis(); return unit.convert(now - lastHeard, TimeUnit.MILLISECONDS); }