I need to implement a uint64_t counter that increments every microseconds that I can then read.
I tried to use the timer API and increment the counter in the event handler call back but because it is being called at 1 us rate it never really exits the interrupt handler for very long and I can not do any other work.
Is there another way to do this?
Is there a simple method to just read the "tic" counter (and then just divide by number of tics per us) without setting up a timer?