public synchronized void increase(){
  if (accuracy > 0) {
    long timePassed=System.currentTimeMillis() - lastAdded;
    if (timePassed > accuracy) {
      clearUp();
      if (count > 0) {
        data.addFirst(lastAdded + accuracy);
      }
      lastAdded=System.currentTimeMillis();
      count=0;
    }
    count++;
  }
 else {
    clearUp();
    data.addFirst(System.currentTimeMillis());
  }
}

public synchronized void increase ( ) { if ( accuracy > 0 ) { long timePassed = System . currentTimeMillis ( ) - lastAdded ; if ( timePassed > accuracy ) { clearUp ( ) ; if ( count > 0 ) { data . addFirst ( lastAdded + accuracy ) ; } lastAdded = System . currentTimeMillis ( ) ; count = 0 ; } count ++ ; } else { clearUp ( ) ; data . addFirst ( System . currentTimeMillis ( ) ) ; } }
adds an element to the counter or caches it to be added .
