public long getDuration() {
        return duration;
    }
Get the current duration.

@return duration in milliseconds.
android/third_party/time-duration-picker/src/main/java/mobi/upod/timedurationpicker/TimeDurationPickerPreference.java