application here:
opengauge - Revision 165: /trunk/mpguino
basically, it tracks the amount of time the injectors are open and determines the fuel delivered from there
it also tracks the distance if your car has an appropriate speed sensor hookup.
thus it can track and display distance, fuel used, distance/fuel (mpg), speed, gph, and a few other permutations.