udp packets and time function