Getting the value change since a point in time

I need to get a water meter reading since a moment I press a button. I got the timestamp of the press. Is there a way to get the value change of an utilty meter since that point in time? I tried to get the value using statistics, but it only accepts a fixed value, not a timestamp, nor template with value of second since timestamp etc. Is there another way to achieve this?