Press the flag. A timer is running. See how long it takes the bug to land on the donut. The timer will reset each time he leaves the donut.
I added a list that keeps track of the last 5 times it took for the bug to get to the donut. Initially, I tried adding the time to the list after the donut said the time, but because it "said" the time for 3 seconds, it threw off the timer. As adding to the list is quick, I put it just before the donut says the time. The code also looks for the length of the list, deleting the entry in the first spot when the list is longer than 5.