public static int getTimeFactor(TSOpenSessionResp openResp) {
    if (openResp.isSetConfiguration()) {
      String precision = openResp.getConfiguration().get(TIME_PRECISION);
      if (precision != null) {
        switch (precision) {
          case MILLISECOND:
            return 1_000;
          case MICROSECOND:
            return 1_000_000;
          case NANOSECOND:
            return 1_000_000_000;
          default:
            throw new IllegalArgumentException("Unknown time precision: " + precision);
        }
      }
    }
    return 1_000;
  }
Convert from {@link TSStatusCode} to {@link TSStatus}, which has message appended with existing
status message

@param tsStatusCode status type
@param message appending message
iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/RpcUtils.java