Maybe use an array and write the system timer to it after every command. then after game exit simply list the array contents and you'll see between which commands the most milliseconds have past.