implement a simple ping to server to measure net lag