public long toMilliseconds() {
        switch (resolution) {
            case HUNDRED_MILLISECONDS:
                return 100L * transitionStep.value;
            case SECOND:
                return 1000L * transitionStep.value;
            case TEN_SECONDS:
                return 10000L * transitionStep.value;
            case TEN_MINUTES:
                 return 10L * 60 * 1000 * transitionStep.value;
            default:
                return -1;
        }
    }
@return Time in milliseconds given any resolution or -1 if resolution is not set.
mesh/src/main/java/no/nordicsemi/android/mesh/data/GenericTransitionTime.java