Example #1
0
 public void openScope(string name)
 {
     if (shouldRun)
     {
         backing.openScope(name);
     }
 }
Example #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);
        }
Example #3
0
 public FrameTimingScope(string name, ITiming timing)
 {
     this.timing = timing;
     timing.openScope(name);
 }
Example #4
0
 public static void scoped(this ITiming timing, string name, Action f)
 {
     timing.openScope(name);
     f();
     timing.closeScope();
 }