The Science of Timekeeping: How Clocks Work