Searched refs:elapsed (Results 1 – 4 of 4) sorted by relevance
104 long elapsed = after - before; in run() local105 if (elapsed > timeout) { in run()111 timeout -= elapsed; in run()
70 long elapsed = System.currentTimeMillis() - start; in testThreadSleep() local71 long offBy = Math.abs(elapsed - millis); in testThreadSleep()
409 long elapsed = System.nanoTime() - startTime; in awaitDone() local410 if (elapsed >= nanos) { in awaitDone()414 parkNanos = nanos - elapsed; in awaitDone()
374 long elapsed = now - start; in sleep() local376 if (elapsed >= duration) { in sleep()380 duration -= elapsed; in sleep()