Exemplo n.º 1
0
 public void closeScope()
 {
     if (shouldRun)
     {
         backing.closeScope();
     }
 }
Exemplo n.º 2
0
        public static A scoped <A>(this ITiming timing, string name, Fn <A> f)
        {
            timing.openScope(name);
            var ret = f();

            timing.closeScope();
            return(ret);
        }
Exemplo n.º 3
0
 public static void scoped(this ITiming timing, string name, Action f)
 {
     timing.openScope(name);
     f();
     timing.closeScope();
 }