Behaviour of xTaskGetTickCount

With xTaskGetTickCount is it giving the tick count for just the current task or the number of ticks used for all tasks? For example if I have

 TickType_t xT0 = xTaskGetTickCount(); /// DO SOME STUFF TickType_t xT1 = xTaskGetTickCount();

and one tick is 1 ms, does xT1-xT0 reflect the number of milliseconds of wall clock time that have passed or only the amount of CPU time spent to do some stuff, not counting the time other tasks have spent doing other things?

1 Related questions 2 FreeRTOS timer Tick too fast in SAM L21 Xplained Pro 20 Strategy for feeding a watchdog in a multitask environment 3 FreeRTOS context switching Related questions 2 FreeRTOS timer Tick too fast in SAM L21 Xplained Pro 20 Strategy for feeding a watchdog in a multitask environment 3 FreeRTOS context switching 1 Does FreeRTOS guarantee the first timer tick to be exactly 1ms? 0 Achieving wait-time accuracies in FreeRTOS environment 1 difference between non preemptive and cooperative and rate-monotonic scheduler? 2 No scheduling with FreeRTOS on CC3200 Launchpad Load 4 more related questions Show fewer related questions Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

You Might Also Like