It's easy
West Marine has a Teleflex hour meter for $46.It records the hours your switch is on. It is very easy to install; one wire to the ground and the other wire to the side of your switch that has 12v dc power when the engine is operating. Technically, it doesn't record hours of engine operation, but I suspect that your switch will always be on when your engine is running, and off when it isn't.