Showing posts with label microsecond delay in java. Show all posts
Showing posts with label microsecond delay in java. Show all posts

Friday, September 17, 2010

microsecond delay in java

private static void microDelay(long delay)
{
long start = System.nanoTime();
boolean run = true;
while(run)
if(System.nanoTime() - start >= delay)
return;
}