Esempio n. 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));
 }
Esempio n. 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));
 }