Why is micros() so much slower than millis()?

No, that does fit in a signed long, so that’s what the compiler will go for.

That’s not necessary

When comparing a signed value with unsigned value, the compiler converts the signed value to unsigned. so you get UL automagically

1 Like