Add delay in both mpi and shmem, fix a parse_time bug