I use software that lets me change tempo and loop all or parts of tunes/exercises. Software like "The Amazing Slow Downer" and "Transcribe". I start out playing slowly and the software automatically loops and increments tempo by a designated amount. I gradually learn the tune and become able to play the tune/exercise faster.
I prefer using software like this for learning tunes and performing exercises. I can hear the pitch and sound of every note. Metronomes don't provide this. I sometime do use a metronome to become able to play a short complex noting pattern. That is about it as far as metronome use goes. I have software apps that are more enjoyable and effective.
When I play it against an audio recording of the scale I hit the notes every time, when I play it against a metronome I continually screw up, my ears have difficulty hearing the metronome whereas the recordings are clear. If I am learning a tune I tend to play along to a slowed-down track to get the timing. Maybe I should abandon the metronome