It's not customs that take time, but rather immigration / passport control. Three hours is the typical minimul recommended between a flight and train out of CDG, more if you are trying to catch a train out of Paris. As mentioned, passport control (ot customs) can be a 20 minute trip or a 90 minute ordeal.