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;
}

No comments: