I would say also that getting a vice (lust or otherwise) under control is in large part dependent upon when and how God distributes His Grace. There is no formula for when God will give you the grace to overcome masturbation - it might be tomorrow, or it might be something you struggle with for the rest of your life (though it will most likely be somewhere in between).
My advice, for what it is worth: Make frequent use of the sacrament of Confession, be sure to receive the Eucharist as much as possible (within reason of course - don’t go taking it three times a day or anything extreme like that) when in a state of grace, pray, and practice mortification.
Further, if you have not, find a brother in whom you trust and who is also trying to grow in virtue. Have them be an accountability partner. Satan can give us a heck of a beating if we keep our sin in the dark, but if we are open about it with the right people (obviously, don’t go advertising it to everyone), then Satan loses some of his power over you.
The fight for virtue is a lot like the fight for prayer. No matter how much you struggle, the thing of utmost importance is to keep persevering. The temptation to quit fighting vice and striving for virtue is in many ways much more dangerous than the temptation to a particular sin, even a grave sin, because then the devil can have his way with us. Pray for the grace of perseverance, so that even if you struggle your entire life with lust (again, I don’t think you will, at least to the degree you might now), you can at least go before God having tried and fought your whole life long. You’d still surely need His Mercy- we all do- but this seems to me to be the most sure way.