A high-precision timing method of a semi-physical
simulation system, steps are as follows: (1) creating an overflow
linked list and a ready
linked list; (2) a user inputs information of a
timer to be created; (3) judging whether a time length corresponding to a remaining
tick number in target
timer information is greater than a preset remaining time threshold; if the time length corresponding to the remaining
tick number is greater than the preset remaining time threshold, performing an overflow
linked list updating operation, completing creation of a
polling timer and updating of the overflow linked
list; otherwise, performing a ready linked
list updating operation, completing creation of a ready timer and updating of the ready linked
list; (4) when an overflow of the ready timer occurs, performing task execution and updating operations on each node in the ready linked list in sequence; (5) when an overflow of the
polling timer occurs, performing information updating and registration operations on each node in the overflow linked list in sequence; (6) repeating steps (2)-(5) until the user no longer inputs timer information.