Pretty sure with petrol, they can't change the price while you are filling. Though according to most ICE drivers they only spend 11 seconds for the entire filling process, lol.
I guess if they show the costs ahead of time, ie off-peak is x between these hours, and peak is y between these hours...