From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grant Edwards To: ecos-discuss@sources.redhat.com Subject: [ECOS] RedBoot network timer question Date: Thu, 18 Jan 2001 14:57:00 -0000 Message-id: <20010118170204.A10344@visi.com> X-SW-Source: 2001-01/msg00320.html Are the following observations correct? 1) The network code keeps track of millisecond "ticks" by delaying for 1ms and incrementing a counter every time any of the code uses the MS_TICKS() to check the current time. 2) But, the network polling code is only called once every 250ms [the timeout value passed to gets() by the main loop]. I verified this by pinging the board and response times varied from 4m to 290ms with a mean of 144ms. 3) That means that the network time only increments by a few milliseconds once every 250ms. Time would appear to pass very slowly to the network routines, making the TCP timeouts longer by a factor of about 100. -- Grant Edwards grante@visi.com