摘要 |
The method for measuring the run time of a task in a real-time system having a number of tasks provides that the timer is started at the beginning of the task whose run time is to be determined, and the timer is stopped in response to an interrupt, the timer status is stored, and, following termination of the interrupt, the timer is started again. The essence of the present invention is that the timer can be started at the beginning of each task, and its status is stored in response to each change in priority level. The device according to the present invention for measuring the run time has one timer, which is provided with a memory having a capacity that is adapted to the number of priority levels.
|