# vApplicationTickHook() help

**URL:** <https://forums.freertos.org/t/vapplicationtickhook-help/11292>\
**Category:** Libraries\
**Created:** [December 8, 2020, 10:38am UTC](https://forums.freertos.org/t/vapplicationtickhook-help/11292 "2020-12-08T10:38:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![samasoumia](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/samasoumia/32/1101_2.png) [@samasoumia](https://forums.freertos.org/u/samasoumia)\
**Post date:** [December 8, 2020, 10:38am UTC](https://forums.freertos.org/t/vapplicationtickhook-help/11292/1 "2020-12-08T10:38:16Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![m.timm](https://avatars.discourse-cdn.com/v4/letter/m/7ea924/32.png) [@m.timm](https://forums.freertos.org/u/m.timm)\
**Post date:** [December 8, 2020, 1:34pm UTC](https://forums.freertos.org/t/vapplicationtickhook-help/11292/2 "2020-12-08T13:34:38Z")

</div>

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

Check here:

> **[RTOS - uxTaskGetSystemState()](https://www.freertos.org/uxTaskGetSystemState.html)**
>
> RTOS run time and debug state information
