I've never timed it but 10-20 seconds sounds about right.
I suspect if you have the code then you have the secondary MAF sensor. Check your connection to the sensor.
Part number is 11721438814 (#8 in the diagram) if you need new sensor.
RealOEM.com * BMW E53 X5 3.0i EMISSION CONTROL-AIR PUMP