After Stef closes the window and is scared by the metronome, the clicking sound of the metronome can be heard. Since no one was there to start it, it would have been going the whole time, so the sound should have been heard when she walked in the room.