I need measure time in my ARM to measure dt - period, something like this:
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?
Code: Select all
LastTime=CurrentTime; CurrentTime=xTaskGetTickCount(); dt=(double)((CurrentTime-LastTime));
Thank you very much.