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