In message <10553.972652114@critter> Poul-Henning Kamp writes:
: >the time between a pulse and a space often only takes
: >a few milliseconds. I have to meassure that with
: >gettimeofday().
: 
: You will need to do this in a device driver, there is no way you
: can reliably measure that from userland.
: 
: Trust me on this: I've tried.

We at timing solutions had a heck of a time measuring timing things in
userland and it became very easy to do it in kernel land.  We used the
parallel port to measure out pulses, but the same pps api that Poul
should work for the serial port as well.

And the advantage of the pps api is that it queues up events (iirc)
and counts them so you know if the buffer overflowed and you missed
any.

Warner


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to