I sometimes use a metronome to mark time when I practice. The key word for me is "sometimes."
The metronome is my friend when...
I use it as a guide. I set the metronome ticking for the tempo designated at the beginning of the piece. This is my goal tempo. (If there is no tempo mark, I set a temporary goal tempo of my choosing.) I attempt to play the piece at that tempo. If I can't play at that tempo, I set the metronome to half the speed of the goal tempo and work to increase the speed from there.
I use the metronome as a diagnostic tool. I play along with the metronome ticking at the goal tempo until I am unable to keep up, or until I make a mistake. I am then able to identify the place that needs more practice. I am amazed how often I think I can play a piece up to speed and find out how wrong I am when I play along with the metronome.
The metronome is my foe when...
I play along to a ticking metronome and inhibit my musical expression. This happens most often when I keep the metronome ticking throughout the entire piece.
I work to correct a section of music. I find the ticking metronome annoying, and my frustration level rises. That's when I turn off the metronome.
Time to practice . . .