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