/// <summary> /// Performs a decrement operation of <see cref="Stopwatch.ElapsedMilliseconds"/>. /// <para> /// Handy when collecting time deltas. /// </para> /// </summary> /// <param name="counter"></param> /// <param name="stopwatch"></param> /// <returns></returns> public static long Decrement( this ISupportsDecrement <long> counter, Stopwatch stopwatch) { return(counter.Decrement(stopwatch.ElapsedMilliseconds)); }
/// <summary> /// Performs a decrement operation of 1 unit. /// </summary> /// <param name="counter"></param> /// <returns></returns> public static long Decrement( this ISupportsDecrement <long> counter) { return(counter.Decrement(1L)); }