The principle and use of the timer