public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] RedBoot network timer question
@ 2001-01-18 14:57 Grant Edwards
  2001-01-18 15:35 ` Gary Thomas
  0 siblings, 1 reply; 7+ messages in thread
From: Grant Edwards @ 2001-01-18 14:57 UTC (permalink / raw)
  To: ecos-discuss

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2001-01-21 10:18 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-18 14:57 [ECOS] RedBoot network timer question Grant Edwards
2001-01-18 15:35 ` Gary Thomas
2001-01-19  8:23   ` Grant Edwards
2001-01-19 10:45     ` Hugo Tyson
2001-01-19 11:29       ` Grant Edwards
2001-01-19 13:33     ` [ECOS] No simulator in gdb target list Sergei Slobodov
2001-01-21 10:18       ` Jonathan Larmour

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).