locate the commands you are interested in, find an unused pin on your board,
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.)