replace time(null) with mpi_wtime