OK, you've got a signal that represents gallons per minute and you want to totalize it. Let's say that you want to update the cumulative flow every second. You take the number representing flow rate (Gallons per minute), multiply it by 1 second. Divide the result by 60 (seconds per minute). The result is the number of gallons accumulated in the last second. Add it to the running total.
If you wanted to sample every ten seconds instead of every second, take the GPM value, multiply it by 10, divide by 60, and add the result to the running total.
If you sample every 100 milliseconds, take the GPM value, multiply it by .100, divide by 60, and add the result to the running total.
The important thing is that you only do the arithmetic once per sample period.