If you're not familiar with flow, there's an amazing TED talk by the godfather of flow, Mihaly Csikszentmihalyi. Flow is a mental state where you are deeply focused on the task at hand, your awareness of time passing has slipped. In other words, you're "in the zone." The more time you spend in flow, the more satisfied you will feel, and satisfaction is a key component of happiness.