Re: Serial port (/dev/ttySX) question.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Saturday 30 January 2010, Mikkel wrote:
>On 01/30/2010 06:25 PM, Gene Heskett wrote:
>> Q?  This code uses the 'sleep(1)' call to time its repeat scans.  It is
>> using no cpu as its the bottom item on an htop sorted by use report.
>>
>> I assume I can go into the tarball and change those 2 sleep calls to
>> sleep(0.05) to get 20 scans a second?  I'm going to try it anyway & see
>> if it will still build.
>
>Nope - sleep only accepts an integer value. Using sleep, 1 second it
>the best you will get.
>
>Mikkel
>
Ok, is there some other time waster with a finer resolution that can be 
subbed?

Thanks Mikkel.

-- 
Cheers, Gene
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)

Type cat vmlinuz > /dev/audio to hear the Voice of God.
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux