Measure elapsed time

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Not applicable
Hello,

is there a easy way to measure the elapsed time like this:

start_time=Timer_Start();

...doing some calcs

stop_time=Timer_Stop();

Elapsed=stop_time-start_time;

For me it's important to get the figure 'Elapsed' in a non-cpu-using way. I tried the microsecond example without any success. The resolution should be in the milli second or if possible micro second range.

It's working now. Config of CNT001 was wrong.

Regards Kurt
0 Likes
0 Replies