First working revision of gpio timing added.
Changed ordering of time sampling and output change so that if it triggers an interrupt the input time is not sooner than the output time. This also decreased the observed latency from just under 300ns to about 200ns on two GPIOs that are directly connected.
Removed some printk() calls.