I've been lurking to see expert answers to this.
The situation here is that you need two flowmeters to get reasonable results. One goes in the fuel line, and I'd recommend putting it between the filter/separator and the injection pump so that anything that might clog it up or corrode it gets taken out. The other one goes in the return line from the injectors to the fuel tank.
Both the instantaneous and averaged rates are the difference between these flows, and my opinion (subject to correction!) is that you can integrate the signals off these at the same rate to get the result in either case. There is a short lag between the flow-rate measured in the fuel line and the flow that is seen in the return, but I think this lag is so short (and the dead volume involved so small) that it doesn't materially affect accuracy.
I had a 1985 diesel Lincoln (!) which used the 2.5 liter BMW turbo engine (I forget their internal engine code for it)with the Lincoln digital dashboard. This vehicle contained all the flowmeters, logic, connectors, etc. for the application (including nifty vacuum-fluorescent displays). There were quite a few Mark VIIs built with that engine during the mid-1980s which I think also have all the pieces. While I wouldn't expect the flowmeters from something that small to work on, say, a 3208, it's quite possible that everything else would, and it's the difference signal that determines the range, not the intake or return flow magnitudes. So finding flowmeters with the appropriate style of encoder on them would be the only research, aside from a scrapyard trip for the Lincoln, that you might need even for a fairly big truck...