How would I use getCurrentTime() of video to add text to the scene at a specific time?

This post has an example document: Sync animations to Video & Audio

The text you add to the scene could be a regular animation on a Timeline, triggered by the timeupdate value.