示例#1
0
文件: Timing.cs 项目: ArnasJ/tlplib
 public void openScope(string name)
 {
     if (shouldRun)
     {
         backing.openScope(name);
     }
 }
示例#2
0
文件: Timing.cs 项目: ArnasJ/tlplib
        public static A scoped <A>(this ITiming timing, string name, Fn <A> f)
        {
            timing.openScope(name);
            var ret = f();

            timing.closeScope();
            return(ret);
        }
示例#3
0
文件: Timing.cs 项目: ArnasJ/tlplib
 public FrameTimingScope(string name, ITiming timing)
 {
     this.timing = timing;
     timing.openScope(name);
 }
示例#4
0
文件: Timing.cs 项目: ArnasJ/tlplib
 public static void scoped(this ITiming timing, string name, Action f)
 {
     timing.openScope(name);
     f();
     timing.closeScope();
 }