code: public boolean isOver() {
          if (!isOver) {
              final long now = System.currentTimeMillis();
              isOver = now - startTime >= duration;
          }
          return isOver;
      }
docs: Check if the started duration is over
  
  @return true if over