public void incrementInSteps(long tickMs,long totalMs){
  long start=now;
  long end=start + totalMs;
  while (now < end) {
    incrementBy(Math.min(tickMs,end - now));
  }
}

public void incrementInSteps ( long tickMs , long totalMs ) { long start = now ; long end = start + totalMs ; while ( now < end ) { incrementBy ( Math . min ( tickMs , end - now ) ) ; } }
increments the clock ' s time gradually in several steps the clock will be incremented by tickms amount repeatedly until it has progress by totalms from the given time when this call was made . this call is useful for working with animations in tests . in the end of this call , the call will progress by exactly totalms , even if it means the last tick of the clock is smaller than tickms
