Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 3rd, 2012  |  syntax: None  |  size: 0.20 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. long end = System.currentTimeMillis();
  2. long diff = end - start;
  3. if(diff < 600) {
  4.     try {
  5.         Thread.sleep(600 - diff);
  6.     } catch (InterruptedException e) {
  7.         e.printStackTrace();
  8.     }
  9. }