Before clocks, there were candle clocks that when burned, indicated the passage of periods of time. To set an alarm, you simply pushed a nail into the desired point and the nail would fall and clank on the metal holder