예제 #1
0
 /// <summary>
 /// Performs an increment operation of <see cref="Stopwatch.ElapsedMilliseconds"/>.
 /// <para>
 /// Handy when collecting execution times.
 /// </para>
 /// </summary>
 public static long Increment(
     this ISupportsIncrement <long> counter,
     Stopwatch stopwatch)
 {
     return(counter.Increment(stopwatch.ElapsedMilliseconds));
 }
예제 #2
0
 /// <summary>
 /// Performs an increment operation of 1 unit.
 /// </summary>
 /// <param name="counter"></param>
 /// <returns></returns>
 public static long Increment(
     this ISupportsIncrement <long> counter)
 {
     return(counter.Increment(1L));
 }