Run the latency measurement when the user opens the network monitor