This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Equivalent of sleep() in ECOS for delay
From: "Jonathan Larmour" <jlarmour@redhat.com>
To: "Rosimildo da Silva" <rosimildo@hotmail.com>
Cc: "'eCos mailing list'" <ecos-discuss@sources.redhat.com>
Sent: Thursday, July 19, 2001 8:08 PM
Subject: Re: [ECOS] Equivalent of sleep() in ECOS for delay
> > > > cyg_thread_delay (NUMms) can be used inside of a thread.
> > >
> > > Yes, preferentially.
> > >
> >
> > OOPS !, I was thought that the argument for
> > cyg_thread_delay() was ticks !.
>
> Actually that's right - I didn't notice that. You can use
> cyg_clock_get_resolution() to get the resolution, which allows you to
> convert ticks to ms.
>
I was about to make code sources, when I've decided to check the docs. :-)
Rosimildo.