title: Measure network latency in React Native
body: <p>What would be the best way to measure network latency in React Native? </p>
  
  <p>E.g. </p>
  
  <pre><code>const startTime = Date.now(); 
  let response = await fetch(url)
  const endTime = Date.now(); 
  const totalTimeInMs = endTime - startTime;
  </code></pre>
  
  <p>If I place start and stop timer before/after the network call as shared above that might not give true network latency because the JS might be busy doing some other work and would come to this eventually when there is nothing in the event loop / call back queue / task. </p>
  
  <p>Hence wondering if there is any better way to measure network latency? </p>