Controlling yourself and giving maybe a time limit as you gamble will be helpful as you are looking for a way to control your greediness. But when you are into a worst situation like you didn't controlled your emotion and lose a lot for only 10 minutes. It's up to you if you will have the will to recover that lost or you will stay calm.
When I lose, I dont try to recover and I tried to forget everything. I play for fun so even when I win or lose that doesnt mean anything to me. I will be happy when I win but if I dont then it is fine, I think that it is made for fun only therefore even when we win or lose it will not affect us if we only spend small amount
You should be consistent with that attitude because if you will try to continue that eagerness to recover your losses. There is a sure result on it but as long. With that type of mindset, that if you win it's a good thing but if you lose then you will accept that lightly. Every gambler should think that way so that no one will end into bad fate.