message: added timer to measure open
diff: @@ -18,14 +18,37 @@ adiosStream::adiosStream(const std::string &streamName, adios2::IO &io,
  const adios2::Mode mode, MPI_Comm comm)
  : Stream(streamName, mode), io(io)
  {
  + int myRank;
  + MPI_Comm_rank(comm, &myRank);
  + double timeStart, timeEnd;
  + double openTime;
  + double maxOpenTime, minOpenTime;
  if (mode == adios2::Mode::Write)
  {
  + timeStart = MPI_Wtime();
  engine = io.Open(streamName, adios2::Mode::Write, comm);
  + timeEnd = MPI_Wtime();
  }
  else
  {
  + timeStart = MPI_Wtime();
  engine = io.Open(streamName, adios2::Mode::Read, comm);
  + timeEnd = MPI_Wtime();
  + }
  + openTime = timeEnd-timeStart;
  + MPI_Allreduce(&openTime, &maxOpenTime, 1, MPI_DOUBLE, MPI_MAX,
  + MPI_COMM_WORLD);
  + MPI_Allreduce(&openTime, &minOpenTime, 1, MPI_DOUBLE, MPI_MIN,
  + MPI_COMM_WORLD);
  + if (myRank == 0)
  + {
  + std::cout << " Max open time = " << maxOpenTime << std::endl;
  + std::cout << " Min open time = " << minOpenTime << std::endl;
  + std::ofstream open_perf_log;
  + open_perf_log.open("open_perf.txt", std::ios::app);
  + open_perf_log << std::to_string(maxOpenTime)+", "+std::to_string(minOpenTime)+"\n";
  + open_perf_log.close();
  }
  }
  