flex_length=GetKeyLen(key);
GetKeyLen(key);
The length of a keyframe is the FRAMES (number of frames) divided by the FPS (frames per second). These values are listed in the header of a keyframe file.