Getting current time of AnimationEditor timeline in own plugin

Hey, I’m a bit newbie in coding a plugin. I wrote a simply tab in AnimationEditor and now I’m wondering how to get current time or even frame of timeline in AnimationEditor. I tried look through the source, but still I don’t have idea how to implement current time of timeline to my plugin as a variable. Can someone even exaplain me where to look for to resolve that problem?

343136-5zbhwfn.png