Simple stopwatch pill timer

I take medications often for digestive issues. I don’t take them at set times each day, just as needed. I need a device that will tell me how long it has been since I last took the med. I would like just a simple stopwatch type counter that is triggered by lifting or replacing the pill bottle.(I can workout how later) I was thinking of modifying an electronic kitchen timer, but there are separate buttons for start/stop, and reset. Not just one button to reset and start timing again. Can anyone think of a device that could be modified to track up to 4 bottles?

Possibly just a timestamp device?

Thank you for any leads!