OpenSim/Framework/Util.cs
/// <summary>
/// Environment.TickCount is an int but it counts all 32 bits so it goes positive
/// and negative every 24.9 days. Subtracts the passed value (previously fetched by
/// 'EnvironmentTickCount()') and accounts for any wrapping.
/// </summary>
/// <param name="newValue"></param>
/// <param name="prevValue"></param>
/// <returns>subtraction of passed prevValue from current Environment.TickCount</returns>
Environment.TickCount is an int but it counts all 32 bits so it goes positive
and negative every 24.9 days. Subtracts the passed value (previously fetched by
'EnvironmentTickCount()') and accounts for any wrapping.
Environment . TickCount is an int but it counts all 32 bits so it goes positive and negative every 24 . 9 days . Subtracts the passed value ( previously fetched by ' EnvironmentTickCount () ' ) and accounts for any wrapping .
public static Int32 EnvironmentTickCountSubtract(Int32 newValue, Int32 prevValue)
        {
            Int32 diff = newValue - prevValue;
            return (diff >= 0) ? diff : (diff + EnvironmentTickCountMask + 1);
        }
public static Int32 EnvironmentTickCountSubtract ( Int32 newValue , Int32 prevValue ) { Int32 diff = newValue - prevValue ; return ( diff >= 0 ) ? diff : ( diff + EnvironmentTickCountMask + 1 ) ; }
Environment.TickCount is an int but it counts all 32 bits so it goes positive
and negative every 24.9 days.
Environment . TickCount is an int but it counts all 32 bits so it goes positive and negative every 24 . 9 days .
subtraction of passed prevValue from current Environment.TickCount
subtraction of passed prevValue from current Environment . TickCount
newValue
Int32
None
prevValue
Int32
None