Animation frame

I have a state machine with one running animation. The character just runs and does nothing else. I need to know at each moment of time what frame of the animation is being played (either time or percentage). Similar to how I can set the start position of the animation to, for example, 0.3. I need to know this value at any time. How to do it?