public int getDelay(int n) {
        //
        delay = -1;
        if ((n >= 0) && (n < frameCount)) {
            delay = ((GifFrame) frames.get(n)).delay;
        }
        return delay;
    }
Gets display duration for specified frame.

@param n int index of frame
@return delay in milliseconds
plugins/base-plugin/src/main/java/com/github/hui/quick/plugin/base/gif/GifDecoder.java