Not a very strong experience for me, but turn-based strategy games get close. Especially Civilization 1&2 and Master of Orion 1&2 back in the day (and I do still sometimes get into MoO and new Civs).
Couple first gens of Pokemon made me forget to eat. Some strategy-JRPGs are pretty good too.
Then there are freelancer games, starting with old Pirates!
And some sandboxing, like Sims, where it's not really a game - and thus has no end...