Get sound position(time) C++

I use UAudioComponent to play a sound, but I want to know if there is any way to get the current time of the sound playing. Seems like there is nothing close to getting time on UAudioComponent API.

There is a PlaybackPercent Event called (FOnAudioPlaybackPercent) that gives you the percent how much already played.Also you have the SoundBase to get the total amount time of your track.I think you get an idea.

I did see someone suggest using that method in blueprint. I wasn’t sure if there is another method in C++. Thank you for the answer.