286287288289290291292293294295296
while (true) { try { if (database.isMultiThreaded()) { Thread.sleep(sleep); } else { database.wait(sleep); } } catch (InterruptedException e1) { // ignore } long slept = System.nanoTime() / 1000000 - now;