Re: HD driver
Frode Vatvedt Fjeld <[email protected]> Wed, 21 Apr 2004 23:34:59 +0200
| Newsgroups | gmane.lisp.movitz.devel |
|---|---|
| Message-ID | <[email protected]> |
Peter Minten <[email protected]> writes: > The only thing is to insert a delay of about 500 nanoseconds. I > tried using sleep for it but according to grep it wasn't implemented > yet, so for the moment I'm using (loop for x from 1 to 1000 > collecting x). Ok. First of all I'd suggest not to use consing as a delay mechanism. Secondly, if I'm not much mistaken, 500 nanoseconds is 500 cycles on a 1 GHz machine, so that loop expression is probably off by a factor of about 100 to 1000. Hm.. are you sure it's nanoseconds? I mean, 500 nanseconds is so little it's getting complicated to measure with any accuracy, not the least on older CPUs, or across the PCI bus. -- Frode Vatvedt Fjeld