* amount of delay time needed and reenter the sleep until we get to the future time.
*/
time = future - System.currentTimeMillis();
+ Thread.currentThread().interrupt();
}
}
}
}
accumulatedTime += (now - startTime);
startTime = now;
- return !(accumulatedTime > timeToLive);
+ return accumulatedTime <= timeToLive;
}
/**