I think this is called "flow"...it is some sort of emotional state whereby you are so immersed in a task that it becomes pleasurable, even liberating.