Do you know when the frames start counting? Is it when the screen goes from black to show everything, is it when the music starts, or is it something else?
Edit: Whoops, I re-read your message and saw that you said when the timer should end, at the start of the music
Edit2: After some testing...