Driveshaft length

Normally you measure center to center of the u joints for factory shafts.
If you are looking to have a custom driveshaft made, check with your supplier as to how they prefer the measurements be taken.