Money Weighted Return

I understand if i get the dividens and do not reinvest them I count them as a Inflow of cash the year they were received when im calculating the money weighted return. But what if I reinvest them, how do i take account for them?

I guess it will count as an inflow for the period received, then outflow for the next period if you reinvest it right away.