Returns the active keyframe duration in Minecraft ticks. One tick is 50 ms.
float durationTicks = state.frame();
the duration in ticks, or zero when no keyframe is active