code: private static void waiting(int milliseconds) {
          long t0, t1;
          t0 = System.currentTimeMillis();
          do {
              t1 = System.currentTimeMillis();
          } while ((t1 - t0) < milliseconds);
      }
docs: Wait for a few milliseconds
  
  @param milliseconds