Read "Putting Children First" Proven Parenting Strategies for helping children thrive through divorce. Basically how long your child suffer depend on how amicable your marriage ended. If it is a high conflict situation, child suffer the most.
The book is available in a lot of libraries.