public void asleep(long milliseconds) {
		long next = System.currentTimeMillis() + milliseconds;
		while (System.currentTimeMillis() < next) {
			try {
				sleep(next - System.currentTimeMillis());
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}
	}