joseph_e2
Member
Just as another option, I've seen a periodic task used to increment an integer every time it's called. There is logic inside to increment either the up-time counter or the down-time counter, depending on whether whatever it's timing is on or off. The counter is reset by simply writing a 0 to it, either manually or with a one-shot when the pump stops (or is restarted).