Using a practice routine is a deliberate habit which you use to ensure that you will make progress every time you sit down at the piano.
The one I have developed here is in 3 steps:
So, by this point you should be at the piano with your music out and a tracking sheet next to you- is your pencil sharpened? It's time to practice.
You have chosen to work on measure 12 of your piece. You play through it a few times, work on the fingering, are counting aloud. At some point you will ask yourself, "Did I get it right?" If the answer is yes, check off the measure on the tracker and move on. If the answer is no, continue working.
I often keep a "Frustration Log" when I get stuck. It's simply a list where I write the name of the measure, write what I was stuck on, and move on. Don't let one measure keep you from learning the other 200.