public void setDuration(long duration){
        if(duration >= 500){
            mSliderDuration = duration;
            if(mAutoCycle && mCycling){
                startAutoCycle();
            }
        }
    }
set the duration between two slider changes. the duration value must >= 500
@param duration
library/src/main/java/com/daimajia/slider/library/SliderLayout.java