Animation Event How to Set time in Custom Editor?

private void SetAnimationEvent(float time)
        {
            var prevEvents = AnimationUtility.GetAnimationEvents(m_selectAnimClip).ToList();
          
            var animEvent = new AnimationEvent();
            animEvent.time = time;
            prevEvents.Add(animEvent);
            var newEventsArr = prevEvents.ToArray();
          
          
            AnimationUtility.SetAnimationEvents(m_selectAnimClip, newEventsArr);
        }

this code in Editor,
but event time of select Animation Clip in Event is be set up in a strange time

(Time set from the left : 0s, 0.01s, 0.5s, 1s, 1.02s, 1.1s)

How do I set the time?

animEvent.time = m_time;

Did you mean to use the time parameter?

m_time is wrong code, this mean time Parameter same