The way I've always seen this done is either to tap an injector, or to pick up current pulses from the fuel pump. After a calibration run to establish the number of pulses per gallon, you have a fairly accurate indication of fuel flow.