Try to never masterbate or cum.
Stretch every second you can, if it starts turtling reach on down your pants and stretch in in various stretches then do some helicopter twirls.
Try wearing loose clothing/under wear. If I can I wear boxers over briefs, wear sweat pants or shorts rather than jeans or stiff clothes. If I am home I wear no underwear underneath just sweat pants.
Try to keep it warm! You wash your hands with hot water? Well splash some on your unit or use a washcloth. Laying in bed at night? Wrap it in a heating pad! Sitting at the computer? Use a hot rice pack under your clothes!
If it starts turtleing do some stretches, helicopter twirls, something to get the blood flow to it as well. Maybe open up a porn website and look for 10, 30, 200 seconds until you start to get a erection. Jelq whenever you start to get a semi. Don’t try to get rid of random erections Try to get more erections everywhere!