Tag Archives: timing

Profiling Code: More Than One Way to Skin A Cat

I found an excellent profiling library for the Arduino posted by the seemingly inexhaustible Arduino Forum poster Nick Gammon. You can find Nick’s code here. Here is the program code from my cycle counting post with Nick’s profiling library inserted … Continue reading

Posted in Uncategorized | Tagged , , , , , , | Leave a comment

Arduino Timing Failure

Why does this attempt to time a fixed-point math multiplication yield 0 microseconds? After examining the resultant assembly code produced, it appears the optimizing compiler performed the math, eliminated the fixed-point code and treated the answer as a constant. Look … Continue reading

Posted in Uncategorized | Tagged , , , , , | Leave a comment