If we ignore gravity, then the pressures over the inlet and outlet areas are constant. Along a streamline on the centerline, the Bernoulli equation and the one-dimensional continuity equation give, ...
There are various methods to measure acceleration due to gravity. At Higher level all rely on one of the equations of motion. The measurements required will depend on the equation used.