Locating the bottle necks

When the times you want to check are some milliseconds you can check it with the sound card of your PC:

locate the commands you are interested in, find an unused pin on your board, insert a digitalWrite(xx,HIGH) before the commands and a digitalWrite(xx,LOW) after the commands. Now connect pin-xx and Ground with the microphone input of your sound card, using a big resistance. Install any software oscilloscope to check the times.

(Of course, you can use a hardware oscilloscope if available.)

contact: nji(at)gmx.de