My plane has a gizmo that measures fuel flow. That gizmo is connected to the GPS so it knows how fast the plane is going and how far to the destination I have punched in. It spits out gallons/hour, gallons/nautical mile, gallons to destination (this is estimated of course).