vApplicationTickHook() help

plz how do I use vApplicationTickHook() to measure the execution time of a task. I went through the FreeRTOS documentation but could not figure it out

Hi,
Instead of using vApplicationTickHook(), try to use vTaskGetInfo() (single task) or uxTaskGetSystemState() (for all tasks).

Check here: