I like to set a timer. "One hour to figure this out". Then I don't work on it for another day/week. The brain solves problems during sleep, no need for me to stress out. :)
It's not unusual for me to have several dozens timers go off during the course of a day.
It also increases my happiness because I'm OCD and love lists, and I'll start to assign tasks BY DAY in asana (get these done mon, these Tues, etc) and then I go nuts. But just setting time blocks and not assigning tasks to days I'm just if not more productive and happier.
My first experience with this was with a girl in my teenage years, and we were doing some hand game that I forget now, and she's like "don't worry, tomorrow you'll know how to do it" (????)
... and that basically was my software career in a nutshell :P