public void openScope(string name) { if (shouldRun) { backing.openScope(name); } }
public static A scoped <A>(this ITiming timing, string name, Fn <A> f) { timing.openScope(name); var ret = f(); timing.closeScope(); return(ret); }
public FrameTimingScope(string name, ITiming timing) { this.timing = timing; timing.openScope(name); }
public static void scoped(this ITiming timing, string name, Action f) { timing.openScope(name); f(); timing.closeScope(); }