Getting the remaining time of a song

Hello everyone, hope you are doing good… if someone could guide me as to how to get the current remaining time of a song and update that every second so I can display it on a textfield I would be really grateful.

Thank you and all the best!

Andres.