function(mDelaySettings, iTime) {
			if (mDelaySettings) {
				if (mDelaySettings.factor !== undefined && typeof mDelaySettings.factor === 'number') {
					iTime *= mDelaySettings.factor;
				}
				if (mDelaySettings.offset !== undefined && typeof mDelaySettings.offset === 'number') {
					iTime += mDelaySettings.offset;
				}
				if (mDelaySettings.max !== undefined && typeof mDelaySettings.max === 'number') {
					iTime = Math.min(mDelaySettings.max, iTime);
				}
				if (mDelaySettings.min !== undefined && typeof mDelaySettings.min === 'number') {
					iTime = Math.max(mDelaySettings.min, iTime);
				}
			}
			return iTime;
		}
function(mDelaySettings, iTime) {
			if (mDelaySettings) {
				if (mDelaySettings.factor !== undefined && typeof mDelaySettings.factor === 'number') {
					iTime *= mDelaySettings.factor;
				}
				if (mDelaySettings.offset !== undefined && typeof mDelaySettings.offset === 'number') {
					iTime += mDelaySettings.offset;
				}
				if (mDelaySettings.max !== undefined && typeof mDelaySettings.max === 'number') {
					iTime = Math.min(mDelaySettings.max, iTime);
				}
				if (mDelaySettings.min !== undefined && typeof mDelaySettings.min === 'number') {
					iTime = Math.max(mDelaySettings.min, iTime);
				}
			}
			return iTime;
		}
function ( mDelaySettings , iTime ) { if ( mDelaySettings ) { if ( mDelaySettings . factor !== undefined && typeof mDelaySettings . factor === 'number' ) { iTime *= mDelaySettings . factor ; } if ( mDelaySettings . offset !== undefined && typeof mDelaySettings . offset === 'number' ) { iTime += mDelaySettings . offset ; } if ( mDelaySettings . max !== undefined && typeof mDelaySettings . max === 'number' ) { iTime = Math . min ( mDelaySettings . max , iTime ) ; } if ( mDelaySettings . min !== undefined && typeof mDelaySettings . min === 'number' ) { iTime = Math . max ( mDelaySettings . min , iTime ) ; } } return iTime ; }
Calculates the delay on base of the provided settings.
It is possible to configure an offset, a minimum and a maximum delay.

@param {object} mDelaySettings The settings map.
@param {int} iTime The curreent duration of the request as milliseconds.
@returns {int} The new duration as milliseconds.
Calculates the delay on base of the provided settings . It is possible to configure an offset a minimum and a maximum delay .
Set the delay