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