10 years, 2 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, 2 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.