Esempio n. 1
0
 public void add_behaviour_to(IRepresentAMethodInvocation invocation)
 {
     timer.start();
     invocation.run();
     timer.stop();
     logger.info("This is how long it took");
 }
Esempio n. 2
0
        public IEnumerable <T> run()
        {
            timer.start();
            var results = original.run();

            timer.stop();
            return(results);
        }
Esempio n. 3
0
 public void decorate(IDispatchAMethodCall method)
 {
     timer.start();
     method.proceed();
     timer.stop();
 }
Esempio n. 4
0
 public void draw(IRenderToADrawingSurface surface)
 {
     timer.start();
     original.draw(surface);
     var span = timer.stop();
 }