title: Getting true total request time in asp.net core web api
body: <p>We have a requirement to log the route called /api/whatever along with the total time in milliseconds for the response.</p>
  
  <p>I thought this would be an awesome thing to include as a middleware in all of our microservices.  When I created this I noticed that the milliseconds I was reporting and what .NET Core embedded messages were reporting was very different.  I was saying 15ms and they were saying 40ms.  So the pipeline itself naturally consumes some CPU time...</p>
  
  <p>Is there any way for me to get true response time along with the request path?</p>
  
  <p>Looking for an approach here that would allow us to "hook in" and modify asp.net core custom message OR a way to get true response time...</p>