The design and implementation of intelligent electronic timer