// return true when interrupted static bool lightSleep(long ms) { try { Thread.sleep(ms); false; } catch (InterruptedException e) { true; } }