mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Reduce Thread.sleep to Jvm.pause, delays >= 1s to 500 ms, and remove "throws Exception" from tests
This commit is contained in:
@@ -233,7 +233,7 @@ public class CHMTest5 {
|
||||
long elapsedTime;
|
||||
while ((elapsedTime = System.currentTimeMillis() - start) < pause) {
|
||||
try {
|
||||
Thread.sleep(pause - elapsedTime);
|
||||
Jvm.pause(pause - elapsedTime);
|
||||
} catch (InterruptedException e) {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user