Add time measurement to udp-client and udp-server.