Exemplo n.º 1
0
 public static A WithTimer <A>(this Func <A> action)
 {
     using (TimeIt.Start())
         return(action());
 }
Exemplo n.º 2
0
 public static R WithTimer <A, R>(this Func <A, R> action, A value)
 {
     using (TimeIt.Start())
         return(action(value));
 }
Exemplo n.º 3
0
 /* Basic support for diagnosing funcs, lambdas, etc. */
 public static void WithTimer(this Action action)
 {
     using (TimeIt.Start())
         action();
 }