I just go off and find something to do - sport, working, cooking, studying. Something to get absorbed in and distracted by.
Plus if you've made some achievement by the end of it, like a great meal, a huge cake, some $$, an assignment finished or whatever, you can have some modicum of pride in...