code: function sleep(time) {
          var stop = new Date().getTime();
          while (new Date().getTime() < stop + parseInt(time)) {
  
          }
      }
docs: set up delay time of a certain response. Not exposed to the client.
  @param time => time to be delayed, represented in millisecond.