Page 1 of 1

Measure time beetwen operation - GetTickCount

Posted: Wed Jan 13, 2016 4:29 pm
by honzek68
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.