Skip to content

Instantly share code, notes, and snippets.

@wolfc
Created July 18, 2012 09:12
Show Gist options
  • Save wolfc/3135183 to your computer and use it in GitHub Desktop.
Save wolfc/3135183 to your computer and use it in GitHub Desktop.
private void tick()
{
final long now = System.currentTimeMillis();
while (System.currentTimeMillis() <= now)
sleep(1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment