implemented average timer for rtt