Trying to output 10 mhz pulses with Raspberry Pi/pi4j, wiringPi...
No problem with millisecond pulses
This works on Mac...doesn't work on Raspberry Pi with pi4j and wiringpi installed:
final long INTERVAL = 100;
long start = System.nanoTime();
long end=0;
do{
end = System.nanoTime();
}while(start + INTERVAL >= end);
System.out.println(end - start);