utility for monitoring network latency