Hi!
I'd like to calculate the elapsed time from point A to point B. I found a few function defined for this purpose but i dont know how to use them.
These functions are:
- TIMER_getCount()
- TIMER_getStatus()
I found them in timer.h.
I'd like to have a code like this:
|------------------------------------------------------------------------------------------
uint32_t start, stop, result;
TIMER_stop(myTimer);
TIMER_reload(myTimer);
TIMER_start(myTimer);
start = TIMER_getCount(myTimer); // Get elapsed time since start
DELAY_US(1000000);
stop = TIMER_getCount(myTimer);
result = (stop - start);
msg = "--> 1\n\r";
scia_msg(msg);
DELAY_US(result);
msg = "--> 2\n\n\r";
scia_msg(msg);
|------------------------------------------------------------------------------------------