Better way for evaluating time the method spend working