title: Angular http request time in interceptor
body: <p>I'm making an interceptor to log my http requests. </p>
  
  <p>So far, so good, everything is working as expected. </p>
  
  <p>What I want now is to get the time the request took to be executed. </p>
  
  <p>I thought I could do something like this </p>
  
  <pre><code>const start = Date.now();
  return next
    .handle(req)
    .map(res =&gt; {
      console.log('took ' + (Date.now() - start) + 'ms');
      return res;
    })
  </code></pre>
  
  <p>}</p>
  
  <p>But the console shows 1 to 2ms, while the network shows more than 50ms ... I think that I should create the start value right when I create the request, but I don't know how.</p>
  
  <p>Any solution ? </p>
  
  <p><strong>PS</strong> : my linting config forbids me to use <code>console.time()</code></p>