For addictions I've wanted to get rid of I have:
1. Keep a spreadsheet of the hours I have spent on the activity, or
2. Kept a running log of how many days I have not done the activity - goal is usually 28 days
Or do you find that even temporary abstinence is worthwhile, even if the bad behavior comes back after some time?