Sync music with timer

I’m trying to allow people to play a song with a timer, and if someone pauses the time it should pause the music at the same time.

I notice the more times the timer is paused the farther they become unsynced.

I’ve tried using the built in timer, as well as using seconds since 1970.
Are there any starter suggestions that I perhaps haven’t tried yet?

Is there a component that would give me the exact length of the song, and it’s current position in time?