public void add_behaviour_to(IRepresentAMethodInvocation invocation) { timer.start(); invocation.run(); timer.stop(); logger.info("This is how long it took"); }
public IEnumerable <T> run() { timer.start(); var results = original.run(); timer.stop(); return(results); }
public void decorate(IDispatchAMethodCall method) { timer.start(); method.proceed(); timer.stop(); }
public void draw(IRenderToADrawingSurface surface) { timer.start(); original.draw(surface); var span = timer.stop(); }