public float getCrankCadence(final CyclingSpeedAndCadenceMeasurementResponse previous) {
		float timeDifference;
		if (lastCrankEventTime < previous.lastCrankEventTime)
			timeDifference = (65535 + lastCrankEventTime - previous.lastCrankEventTime) / 1024.0f; // [s]
		else
			timeDifference = (lastCrankEventTime - previous.lastCrankEventTime) / 1024.0f; // [s]

		if (timeDifference == 0)
			return 0.0f;

		return (crankRevolutions - previous.crankRevolutions) * 60.0f / timeDifference; // [revolutions/minute];
	}
Returns average crank cadence since the previous message was received.

@param previous a previous response.
@return crank cadence in revolutions per minute.
ble-common/src/main/java/no/nordicsemi/android/ble/common/callback/csc/CyclingSpeedAndCadenceMeasurementResponse.java