The engine drives a 3 phase generator and the output frequency varies with rpm.   This is then fed to the display instrument.