On 2015-08-25 08:24, folkert wrote: > Hi, > > Not sure if it is interesting for you guys but I wrote a simple program > for e.g. Linux (or any other system with the pps api implemented) that > listens on a pps source waiting for a pulse and then toggles a gpio > pin. That way you can measure the latency introduced by the the kernel > when listening from userspace. Note that there's a little extra latency > due to the gpio-pin handling. > > You can also use it e.g. blink a led :-) > > It is on github: https://github.com/flok99/pps2gpio
You could potentially work out the GPIO latency by activating two GPIO pins sequentially instead of just one. in your code open two pins rewrite set_value to take two fd's and then have two write()s inside that. The time delay between the changing states of the two pins would give you an approximate value of the latency. _______________________________________________ questions mailing list questions@lists.ntp.org http://lists.ntp.org/listinfo/questions