On Sat, 20 Nov 2010, craignied wrote:
>
> --- In David Smead <> wrote:
> >
> > I'm guessing that usleep has a more intimate connection to the scheduler,
> > but you can test that by toggling an I/O pin somewhere and monitoring that
> > with a oscilloscope.
>
> Thanks! usleep led me to a whole host of timer functions, e.g.
> timer_gettime, which has the head scratching declaration
>
> int timer_gettime(timer_t timerid, struct itimerspec *value)
>
> (I'll have to figure out that structure's spec,) so I'll dink around with
> this, and get back to the group if I remain persistently confused...
You don't say what kernel you are using - if it's a 2.4 kernel, all these
functions only have a resolution of 10millisecs - this is an FAQ.
If a 2.6 kernel you'll need hi res timers compiled in.
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|