Get length from state in Animator

Hi, how can i get seconds from one state of Animator?
I want to know length of “Take 001” state?

How can i do it?

Thanks

i found solution with thi source code:

AnimatorStateInfo currInfo = animator.GetCurrentAnimatorStateInfo(0);
Debug.Log(currInfo.normalizedTime);