UtilsCalculateDelta(UInt16, UInt16) Method
Calculates the delta of the current and previous values. Rollover is accounted for and a positive integer is always returned.
Add the returned value to the accumulated value in the derived class. The last value is updated with the current value.
Namespace: SmallEarthTech.AntPlusAssembly: SmallEarthTech.AntPlus (in SmallEarthTech.AntPlus.dll) Version: 4.0.0.0+01fc5ca24e8f030354f28ec9cef320bc5cbb0ef6
public static int CalculateDelta(
ushort currentValue,
ref ushort lastValue
)
Public Shared Function CalculateDelta (
currentValue As UShort,
ByRef lastValue As UShort
) As Integer
public:
static int CalculateDelta(
unsigned short currentValue,
unsigned short% lastValue
)
static member CalculateDelta :
currentValue : uint16 *
lastValue : uint16 byref -> int
- currentValue UInt16
- The current value.
- lastValue UInt16
- The last value.
Int32Positive delta of the current and previous values.