I had 5 mins today to play with the new T4
I am counting the number of cycles in approx one second
on average we are seeing approx 7.8 million loops !
is there a neater way to do this or could this be used as a benchmark between models ?
I am counting the number of cycles in approx one second
on average we are seeing approx 7.8 million loops !
is there a neater way to do this or could this be used as a benchmark between models ?
Code:
int Counter = 0;
unsigned long TickCount = 0;
void setup() {
Serial.begin(9600);
TickCount = millis();
}
void loop() {
Counter ++;
if (millis() - TickCount > 1000) {
Serial.println(Counter);
TickCount = millis();
Counter = 0;
}
}