It’s probably best to ditch the iframe altogether. For a fun personal challenge, I came up with a rough proof of concept that applies the timer via a theme component. Right now, it adds a timer to the first post of a topic and has a few control buttons. It currently looks like this:
If this is something you’d want me to expand on, let me know. It’s an interesting customization to work on.