To: | |
---|---|
Subject: | Re: [ts-7000] Re: send data to PC through the ethernet port |
From: | "Don W. Carr" <> |
Date: | Thu, 16 Nov 2006 15:38:27 -0600 |
Just use the nanosleep() system call to sleep until the next interval. You can fix it to sleep slightly less time to make up for the time you spend reading the IO and printing it to standard output, thus the average time will be almost exactly the 5 seconds you want, but each one could vary by tens of milliseconds. I can give you some code that figures out how long you spent processing, displaying, etc, and then calculate the next sleep time if you want.
Don. On 11/16/06, soniathakur3 <> wrote:
|
Previous by Date: | Re: [ts-7000] send data to PC through the ethernet port, Kevin R. Battersby |
---|---|
Next by Date: | Re: [ts-7000] send data to PC through the ethernet port, Jim Jackson |
Previous by Thread: | [ts-7000] Re: send data to PC through the ethernet port, soniathakur3 |
Next by Thread: | [ts-7000] Re: send data to PC through the ethernet port, soniathakur3 |
Indexes: | [Date] [Thread] [Top] [All Lists] |
Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU