Measure time beetwen operation - GetTickCount

Discussion around product based on ARM Cortex M4 core.
This forum will be discontinued soon.

Moderators: nferre, ncollot

honzek68
Posts: 5
Joined: Wed Nov 26, 2014 7:01 pm

Measure time beetwen operation - GetTickCount

Wed Jan 13, 2016 4:29 pm

Dear,

I need measure time in my ARM to measure dt - period, something like this:

Code: Select all

 			
LastTime=CurrentTime;
CurrentTime=xTaskGetTickCount();
dt=(double)((CurrentTime-LastTime));
But function xTaskGetTickCount is form FreeRTOS, and I do not have FreeRTOS in my project and do not want. So can you helo me how to make this function by the best simple way?

Thank you very much.

Return to “SAM4 Cortex-M4 MCU”

Who is online

Users browsing this forum: No registered users and 2 guests