code: public static void delay(int ms, int nanos) {
      try {
        Thread.sleep(ms, nanos);
      } catch (InterruptedException e) {
        throw new RuntimeException("Interrupted", e);
      }
    }
docs: Suspends the current thread for a specified number of millis and nanos.
  
  @param ms    number of millis
  @param nanos number of nanos