Skip to content

Instantly share code, notes, and snippets.

@casey-chow
Created April 19, 2011 14:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save casey-chow/928131 to your computer and use it in GitHub Desktop.
Save casey-chow/928131 to your computer and use it in GitHub Desktop.
long deadline = date.getTime() + 3000;
System.out.println(deadline);
System.out.println(Long.toString(date.getTime()));
while (date.getTime() < deadline) {
boolean enter = input.hasNextByte();
if (enter == true) {
misc.fast = true;
}
try {
Thread.sleep(5);
} catch (InterruptedException e) { e.printStackTrace();}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment