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

Re: Short sleeps.



Awwww, come on, stay with the paperclip.  I'm sure whatever solution you
might find won't be as hardcore as that one :)

-- John

> 
> In a past project (don't ask!) I got fast sleep times by connecting
> RxD to TxD on the serial port with a bent paperclip and writing a single
> byte at 9600 baud...immediately reading it back again using 'select()'.
> That would provide about a millisecond of delay without doing a busy/wait,
> which is perfect!
> 
> I'm looking for something creative - but without the paperclip!
> 
> Any ideas?  (Yeah - I know "Buy an Alpha" :-)
> 
> ----------------------------- Steve Baker -------------------------------
> Mail : <sjbaker1@airmail.net>   WorkMail: <sjbaker@link.com>
> URLs : http://www.sjbaker.org
>        http://plib.sf.net http://tuxaqfh.sf.net http://tuxkart.sf.net
>        http://prettypoly.sf.net http://freeglut.sf.net
>        http://toobular.sf.net   http://lodestone.sf.net
>