100 ms delay function needed

Rick Sivernell res005ru at gte.net
Tue Aug 28 22:08:19 BST 2001


On Monday 27 August 2001 01:55 am, you wrote:
> On Mon, 27 Aug 2001 11:09, you wrote:
> > On Saturday 25 August 2001 02:25 am, you wrote:
> > > Hello all,
> > >
> > > I know that this request really has nothing directly to do with
> > > kdevelop however someone may be kind enough to reply anyway.
> > >
> > > I need a function that will give me a 100ms delay, something like
> > > sleep. An accuracy of plus and minus 20 ms would be OK.
> >
> > What is wrong with sleep? You can always write one. Count ticks.
>
> AFAIK the sleep() parameter is in whole seconds, not part there of.
>
> Counting ticks sounds more promising, how do I do that?

Look at the time functions, most operate on the number of ticks since a set 
date & time. Should be in a time class library or you can use the time in the 
standard c library
-- 
Rick Sivernell
Dallas, Texas  75287
972 306-2296
res005ru at gte.net
Caldera Open Linux eWorkStation 3.1
Registered Linux User

        .~.
       / v \
      /( _ )\
        ^ ^
In Linux we trust!

-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list