- try {
- wait(5000);
- } catch (InterruptedException e) {
- LOGGER.error("Unexpected interruption", e);
- }
-
- return System.nanoTime() - start;
+ long start = System.nanoTime();
+ try {
+ wait(5000);
+ } catch (InterruptedException e) {
+ LOGGER.error("Unexpected interruption", e);
+ }
+ return System.nanoTime() - start;