Count cpu cycles in Arduino Due.
Example program using the CYCCNT register to measure execution cycles, for Arduino Due using Platform.io.