public float getLength() {
        return length;
    }
Returns the length in seconds of this animation

@return the length in seconds of this animation
jme3-core/src/main/java/com/jme3/animation/Animation.java