Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
10 years, 3 months ago.
Guaging processor utilization
Hey guys,
What's a good way to know if a function is being interrupted by ticker? I want to know if I'm over doing it with too many ticker attachments.
1 Answer
10 years, 3 months ago.
If your ticker functions don't depend on your main function, I generally let it count to a certain value:
unsigned int count; while(timer.read_ms() < 100) count++;
Then compare it with your tickers enabled and disabled.