Implementation method and apparatus of timer
AssigneeShenzhen Goodix Technology Co., Ltd.
InventorsMING ZHU, MINGLIANG WANG, GUOCHAO YIN, LIHUA HU
Life of this patent
Estimating the term…
Abstract
The present disclosure provides an implementation method and apparatus of timer, the method includes: determining a counting period of a hardware timer according to expiration time of a timer node expires first in a timer linked list; and when the counting period of the hardware timer is expired, traversing through the timer node in the timer linked list and updating the counting period of the hardware timer. The present disclosure provides a technical solution that can effectively reduce system power consumption and processor resource occupancy.
Claims20
An implementation method of timer, comprising:
- determining a counting period of a hardware timer according to expiration time of a timer node expires first in a timer linked list;
- and
- when the counting period of the hardware timer is expired, traversing through the timer node in the timer linked list and updating the counting period of the hardware timer.
An implementation apparatus of timer, comprising:
- a processor and a memory storing instructions thereon, the processor when executing the instructions, being configured to:
- determine a counting period of a hardware timer according to expiration time of a timer node expires first in a timer linked list;
- traverse through the timer node in the timer linked list, and update the counting period of the hardware timer, when the counting period of the hardware timer is expired.
Dependencies are inferred from the claim text.