Pay attention, specially if use micros() that also the assignment and the text need some time, so the time displayed is a bit more than the time needed
FEBaily:
It is so nice to see someone else who knows that maths, being short for mathematics, is plural
I'm not convinced that mathematics is a plural. But out of interest what would you say a singular mathematic or math is? Also a physic perhaps.
But then speakers of British English (or proper English as it usually called, at least round here) are in a tiny minority in the English-speaking world so perhaps we should stick to our charming eccentricities as long as we can.
Was about to code something along the lines of (identical to, in fact) what GypsumFantastic provided , then I thought to myself, Self, I'm sensing a bigger question here ....
Do you actually want to know how long it takes to run the code that's inside that if(), or do you want to know how long the condition is true?