How do hardware timers work?

This looked interesting but I’m too sleepy to watch now… How do hardware timers work?.