[ https://issues.apache.org/jira/browse/IO-823 ]
Radar wen deleted comment on IO-823:
------------------------------
was (Author: radar):
public static void sleep(final Duration duration) throws InterruptedException {
// Using this method avoids depending on the vagaries of the precision
and accuracy of system timers and schedulers.
final Instant finishInstant = Instant.now().plus(duration);
Duration remainingDuration = duration;
do {
Thread.sleep(remainingDuration.toMillis(),
getNanosOfMilli(remainingDuration));
remainingDuration = Duration.between(Instant.now(), finishInstant);
} while (!remainingDuration.isNegative());
}
> The response time of some interfaces is inconsistent with the expected time.
> ----------------------------------------------------------------------------
>
> Key: IO-823
> URL: https://issues.apache.org/jira/browse/IO-823
> Project: Commons IO
> Issue Type: Bug
> Reporter: Radar wen
> Priority: Major
>
> The response time of some interfaces is inconsistent with the expected time.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)