It depends on the type of pine, how much you pile, and how much water you give them. It will also depend on the amount of organic matter in your soil. The longer the pine sits, the more beneficial.
This also helps reduce the risk of diseases like black spot.