A metronome is a device that sounds a steady beat at a chosen tempo, measured in beats per minute (BPM). Musicians use it to play in time and to change speed in controlled steps.
A mechanical metronome swings a pendulum and clicks on each swing. A digital or online metronome makes the click electronically, so it can also accent the first beat of a bar and split each beat into smaller notes.