예제 #1
0
 @Override
 public int getPercentCompleted() {
   double percent =
       (double) (System.currentTimeMillis() - getStartTime()) / (double) timeChop.time();
   return (int) Math.floor(Math.min(100, percent * 100));
 }
예제 #2
0
 @Override
 public int getThreads() {
   return timeChop.threads();
 }
예제 #3
0
 @Override
 public boolean getSaturate() {
   return timeChop.saturate();
 }
예제 #4
0
 @Override
 public long getDelay() {
   return timeChop.delay();
 }