TSK_deltatime
Application Program Interface
2-489
/* Get time difference and
add it to task's STS
object */
TSK_deltatime(TSK_self());
}
}
In the example above, the task blocks on SIO_get and the device driver
posts a semaphore that readies the task. DSP/BIOS sets the task’s
statistics object with the current time when the semaphore becomes
available and the task is made ready to run. Thus, the call to
TSK_deltatime effectively measures the processing time of the task.
Constraints and
Calling Context
❏
The results of calls to TSK_deltatime and TSK_settime are displayed
in the Statistics View only if Enable TSK accumulators is selected in
the RTA Control Panel.
See Also