Methods Summary |
---|
public int | getCompleted()
return completed;
|
public long | getTimeSpent()
return stopWatch.getTime();
|
public int | getUnits()
return units;
|
public long | projectedFinish()
return (long) regression.getIntercept();
|
public long | projectedTimeRemaining()
long timeRemaining = projectedFinish() - getTimeSpent();
return timeRemaining;
|
public void | start()
stopWatch.start();
|
public void | stop()
stopWatch.stop();
|
public void | unitCompleted()
completed++;
if( completed % sampleRate == 0 ) {
long now = System.currentTimeMillis();
regression.addData( units - completed, stopWatch.getTime());
}
|