25-04-2019 дата публикации
Номер: WO2019075745A1
Принадлежит:
A timing method of a virtual timer, an apparatus thereof, and an electronic apparatus. The timing method comprises: if counting time of a hardware timer reaches its timing reference value, the hardware timer entering an interrupt phase and being stopped (S701); in a refresh phase of the virtual timer, determining whether there is a virtual timer in a virtual timer queue that reaches a timing time (S702); if so, executing a corresponding application task (S703); if not, the corresponding application task is not executed; determining, according to elapsed time between the stopping of the hardware timer and entering an interrupt phase and the previous latest start of the hardware timer, the shortest timing time for starting in the virtual timer queue from the time when the hardware timer is stopped entering the interrupt phase (S704); and entering a start-up phase of the hardware timer and updating, according to the shortest timing time and the longest timing time of the hardware timer, the ...
Подробнее